summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup-proxy.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-02-14 02:33:54 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-14 02:33:54 +0200
commit810a7e7d92d15412974810702d954de60453dd31 (patch)
tree9dc0e7744f2ac31a0b2707ade94a7ca1dde50363 /ext/fg/js/popup-proxy.js
parentd7e1ef01d8af4a315a31364eb5138e24a132ea1e (diff)
use sendMessage to notify about initialization
Diffstat (limited to 'ext/fg/js/popup-proxy.js')
-rw-r--r--ext/fg/js/popup-proxy.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js
index 63aa6bbe..f1743064 100644
--- a/ext/fg/js/popup-proxy.js
+++ b/ext/fg/js/popup-proxy.js
@@ -102,6 +102,11 @@ class PopupProxy {
this._invokeHostApi('setContentScale', {id, scale});
}
+ async setDisplayInitialized() {
+ const id = await this._getPopupId();
+ this._invokeHostApi('setDisplayInitialized', {id});
+ }
+
// Private
_getPopupId() {