diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-10-26 18:42:57 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-10-26 18:42:57 +0300 |
commit | 303205dc124a1dde981db5b6401961f797e3a6d4 (patch) | |
tree | a5473d51d9b3feaf13970afc82f2846791402d91 /ext/bg/js | |
parent | 704864b7b2365de488150c947d50e27c97d3bc4c (diff) |
keep url query in history
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/search.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index 2d130522..8d2e7bf2 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -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); } |