From 8a295c4bb06b88bb135a34a3f692ac631a713f50 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Wed, 5 Feb 2020 01:41:57 +0200 Subject: fix constant usage from wrong scope --- ext/bg/js/search.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/bg') 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)); -- cgit v1.2.3