aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-17 15:21:30 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:53:02 -0500
commitc0d91bffc461c61af9d35aecb7c92e15648382b2 (patch)
tree4d74f1d6b08356ab96871b5278cd511ff33b0c2a /ext/bg/js/search.js
parentb3212d776e3f6d735bc9d67acbebc28b7f061ba8 (diff)
Add no-shadow
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 76a62b97..98e167ad 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -70,7 +70,7 @@ class DisplaySearch extends Display {
this.wanakanaEnable.checked = false;
}
this.wanakanaEnable.addEventListener('change', (e) => {
- const {queryParams: {query=''}} = parseUrl(window.location.href);
+ const {queryParams: {query: query2=''}} = parseUrl(window.location.href);
if (e.target.checked) {
window.wanakana.bind(this.query);
apiOptionsSet({general: {enableWanakana: true}}, this.getOptionsContext());
@@ -78,7 +78,7 @@ class DisplaySearch extends Display {
window.wanakana.unbind(this.query);
apiOptionsSet({general: {enableWanakana: false}}, this.getOptionsContext());
}
- this.setQuery(query);
+ this.setQuery(query2);
this.onSearchQueryUpdated(this.query.value, false);
});
}