aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-15 21:12:21 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-16 19:54:41 -0500
commitc4719cb7f4013d7425d66f2dd79765e9b56fbd51 (patch)
tree930b52cc4b1979ef316460ab7f7848fb6183f8ef /ext/fg
parent4ba93b07706745ea4d3ba21598e686275b8fa5f1 (diff)
Add getContainer to popup
Diffstat (limited to 'ext/fg')
-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();
}