summaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-02-05 01:41:57 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-09 21:51:33 +0200
commit8a295c4bb06b88bb135a34a3f692ac631a713f50 (patch)
tree081b2292a63994e40c55d8d84496df009c96f88b /ext/bg/js/search.js
parentc16c38638b4ce39f64add0d6e430a21e44d8ec01 (diff)
fix constant usage from wrong scope
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index ea4ab235..34dac15b 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -65,6 +65,7 @@ class DisplaySearch extends Display {
this.wanakanaEnable.checked = false;
}
this.wanakanaEnable.addEventListener('change', (e) => {
+ const {query=''} = DisplaySearch.parseQueryStringFromLocation(window.location.href);
if (e.target.checked) {
window.wanakana.bind(this.query);
this.setQuery(window.wanakana.toKana(query));