diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-15 17:01:29 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-16 19:54:41 -0500 |
commit | 3f8cc83c25ebbb81a6e4cfb44b077fbc2423da7a (patch) | |
tree | 729709c140b992bef4f0f1f691f23d4705405391 | |
parent | 88ac8f4ead5f1d23923dd6f526f585c3c38d05a0 (diff) |
Group nested message handlers together
-rw-r--r-- | ext/fg/js/popup-proxy-host.js | 10 |
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); |