From c4719cb7f4013d7425d66f2dd79765e9b56fbd51 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 15 Dec 2019 21:12:21 -0500 Subject: [PATCH] Add getContainer to popup --- ext/fg/js/frontend.js | 2 +- ext/fg/js/popup.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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(); }