aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fg/js/frontend.js2
-rw-r--r--ext/fg/js/popup.js4
2 files changed, 5 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 43b64bb0..8835df70 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.container],
+ [popup.getContainer()],
[(x, y) => this.popup.containsPoint(x, y)]
);
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 46a09548..2af734a9 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -135,6 +135,10 @@ class Popup {
}
}
+ getContainer() {
+ return this.container;
+ }
+
getContainerRect() {
return this.container.getBoundingClientRect();
}