keep url query in history

This commit is contained in:
siikamiika 2019-10-26 18:42:57 +03:00
parent 704864b7b2
commit 303205dc12

View File

@ -57,6 +57,7 @@ class DisplaySearch extends Display {
const query = DisplaySearch.getSearchQueryFromLocation(window.location.href);
if (query !== null) {
this.query.value = window.wanakana.toKana(query);
window.history.replaceState({query}, '');
this.onSearchQueryUpdated(query, false);
}