diff options
Diffstat (limited to 'ext/fg')
-rw-r--r-- | ext/fg/js/frontend.js | 2 | ||||
-rw-r--r-- | ext/fg/js/popup.js | 4 |
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(); } |