aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-28 23:52:15 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-28 23:52:15 +0200
commit71a117c267ea8cd7c9bc9302c6671b75e212b13d (patch)
treec256163d1c032871a277cef8d6f051e60209fd34
parent1dd88763de8e4ad2728d87dd33defb9cf1a71a42 (diff)
clear Display history on search page lookup
-rw-r--r--ext/bg/js/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index a98d7a9a..a5b5fb25 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -221,7 +221,8 @@ class DisplaySearch extends Display {
this.setContentTerms(definitions, {
focus: false,
sentence: {text: query, offset: 0},
- url: window.location.href
+ url: window.location.href,
+ clearHistoryOnce: true
});
} else {
this.container.textContent = '';