diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-22 11:19:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 11:19:21 -0500 |
commit | 7234cce4ae528db3e6177da1dbd499abd3c83837 (patch) | |
tree | ee70e6d7819a6de2d549e44c6319705117545f1c /ext/fg/js/frontend.js | |
parent | 7b6a4c4e36ce65af376cd87f5f9e7c657ef2a12c (diff) |
Refactor nested popup/frontend setup (#1052)
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r-- | ext/fg/js/frontend.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 2ee9b4a1..e4c6342e 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -379,10 +379,6 @@ class Frontend { } if (this._updatePopupToken !== token) { return; } - if (this._pageType === 'search') { - this.setDisabledOverride(!this._options.scanning.enableOnSearchPage); - } - this._clearSelection(true); this._popupEventListeners.removeAllEventListeners(); this._popup = popup; @@ -525,11 +521,7 @@ class Frontend { } _updateTextScannerEnabled() { - const enabled = ( - this._options.general.enable && - this._depth <= this._options.scanning.popupNestingMaxDepth && - !this._disabledOverride - ); + const enabled = (this._options.general.enable && !this._disabledOverride); this._textScanner.setEnabled(enabled); } |