diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-26 18:47:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 18:47:58 -0400 |
commit | 9c7b9d666087add0f72900c045ee43ed05c5b467 (patch) | |
tree | 25094cf37cdb542f96736d2286bb5a7761a15467 /ext/fg/js/frontend.js | |
parent | c1b59763941a74367b81e9b8329319f1ede72317 (diff) |
Fix page type never being detected as search page correctly (#867)
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r-- | ext/fg/js/frontend.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index e3988c94..13b0d80c 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -30,7 +30,7 @@ class Frontend { parentPopupId, parentFrameId, useProxyPopup, - isSearchPage, + pageType, allowRootFramePopupProxy }) { this._id = generateId(16); @@ -55,7 +55,7 @@ class Frontend { this._parentPopupId = parentPopupId; this._parentFrameId = parentFrameId; this._useProxyPopup = useProxyPopup; - this._isSearchPage = isSearchPage; + this._pageType = pageType; this._depth = depth; this._frameId = frameId; this._popupFactory = popupFactory; @@ -392,7 +392,7 @@ class Frontend { } if (this._updatePopupToken !== token) { return; } - if (this._isSearchPage) { + if (this._pageType === 'search') { this.setDisabledOverride(!this._options.scanning.enableOnSearchPage); } |