From 71a117c267ea8cd7c9bc9302c6671b75e212b13d Mon Sep 17 00:00:00 2001 From: siikamiika Date: Thu, 28 Nov 2019 23:52:15 +0200 Subject: clear Display history on search page lookup --- ext/bg/js/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') 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 = ''; -- cgit v1.2.3