aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-10-26 18:42:57 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2019-10-26 18:42:57 +0300
commit303205dc124a1dde981db5b6401961f797e3a6d4 (patch)
treea5473d51d9b3feaf13970afc82f2846791402d91
parent704864b7b2365de488150c947d50e27c97d3bc4c (diff)
keep url query in history
-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 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);
}