fix constant usage from wrong scope

This commit is contained in:
siikamiika 2020-02-05 01:41:57 +02:00
parent c16c38638b
commit 8a295c4bb0

View File

@ -65,6 +65,7 @@ class DisplaySearch extends Display {
this.wanakanaEnable.checked = false; this.wanakanaEnable.checked = false;
} }
this.wanakanaEnable.addEventListener('change', (e) => { this.wanakanaEnable.addEventListener('change', (e) => {
const {query=''} = DisplaySearch.parseQueryStringFromLocation(window.location.href);
if (e.target.checked) { if (e.target.checked) {
window.wanakana.bind(this.query); window.wanakana.bind(this.query);
this.setQuery(window.wanakana.toKana(query)); this.setQuery(window.wanakana.toKana(query));