aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-15 21:34:18 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-16 19:54:41 -0500
commit30e13354b3b58a7d7cfce26487076eaaa7552416 (patch)
tree1b4cc1b509a0ef9a7cc1e65ce7568f9e73cd266a /ext/fg/js
parent289a1849c45464cb23bdcaf42c3653515945fc17 (diff)
Add Popup.isProxy
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/frontend.js2
-rw-r--r--ext/fg/js/popup-proxy.js4
-rw-r--r--ext/fg/js/popup.js4
3 files changed, 9 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 8835df70..2fa69c9d 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -22,7 +22,7 @@ class Frontend extends TextScanner {
super(
window,
ignoreNodes,
- [popup.getContainer()],
+ popup.isProxy() ? [] : [popup.getContainer()],
[(x, y) => this.popup.containsPoint(x, y)]
);
diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js
index d90d98be..0471705f 100644
--- a/ext/fg/js/popup-proxy.js
+++ b/ext/fg/js/popup-proxy.js
@@ -48,6 +48,10 @@ class PopupProxy {
// Public functions
+ isProxy() {
+ return true;
+ }
+
async setOptions(options) {
const id = await this._getPopupId();
return await this._invokeHostApi('setOptions', {id, options});
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 552bdcf6..de2c7863 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -52,6 +52,10 @@ class Popup {
// Public functions
+ isProxy() {
+ return false;
+ }
+
async setOptions(options) {
this.options = options;
this.updateTheme();