summaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-07-25 13:23:51 -0400
committerGitHub <noreply@github.com>2020-07-25 13:23:51 -0400
commit2ed2b22d49b60b814ab578ccdb6d86897be9a3e4 (patch)
treeb0bf096d011d41368ac23e4f060c711ca879f7df /ext/bg/js/search.js
parent4a43b41f79d46b8a677bbfb11c27d43e126e670f (diff)
Fix search popup mode (#687)
* Fix missing mode on search popup * Remove mode update
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 93f45468..c29abbaa 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -213,8 +213,7 @@ class DisplaySearch extends Display {
}
_onPopState() {
- const {queryParams: {query='', mode=''}} = parseUrl(window.location.href);
- document.documentElement.dataset.searchMode = mode;
+ const {queryParams: {query=''}} = parseUrl(window.location.href);
this._setQuery(query);
this._onSearchQueryUpdated(this._query.value, false);
}