summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup-proxy-host.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-15 17:01:29 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-16 19:54:41 -0500
commit3f8cc83c25ebbb81a6e4cfb44b077fbc2423da7a (patch)
tree729709c140b992bef4f0f1f691f23d4705405391 /ext/fg/js/popup-proxy-host.js
parent88ac8f4ead5f1d23923dd6f526f585c3c38d05a0 (diff)
Group nested message handlers together
Diffstat (limited to 'ext/fg/js/popup-proxy-host.js')
-rw-r--r--ext/fg/js/popup-proxy-host.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/fg/js/popup-proxy-host.js b/ext/fg/js/popup-proxy-host.js
index f2e2f5d0..83518f44 100644
--- a/ext/fg/js/popup-proxy-host.js
+++ b/ext/fg/js/popup-proxy-host.js
@@ -65,10 +65,6 @@ class PopupProxyHost {
return popup;
}
- async createNestedPopup(parentId) {
- return this.createPopup(parentId, 0).id;
- }
-
getPopup(id) {
const popup = this.popups.get(id);
if (typeof popup === 'undefined') {
@@ -88,6 +84,12 @@ class PopupProxyHost {
return new DOMRect(x, y, jsonRect.width, jsonRect.height);
}
+ // Message handlers
+
+ async createNestedPopup(parentId) {
+ return this.createPopup(parentId, 0).id;
+ }
+
async setOptions(id, options) {
const popup = this.getPopup(id);
return await popup.setOptions(options);