clear Display history on search page lookup

This commit is contained in:
siikamiika 2019-11-28 23:52:15 +02:00
parent 1dd88763de
commit 71a117c267

View File

@ -221,7 +221,8 @@ class DisplaySearch extends Display {
this.setContentTerms(definitions, { this.setContentTerms(definitions, {
focus: false, focus: false,
sentence: {text: query, offset: 0}, sentence: {text: query, offset: 0},
url: window.location.href url: window.location.href,
clearHistoryOnce: true
}); });
} else { } else {
this.container.textContent = ''; this.container.textContent = '';