diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-12-01 05:38:23 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-12-01 05:38:23 +0200 |
commit | 5929018facf792c203e18d3ec690478ee44388e0 (patch) | |
tree | 1088513ffdba0bf56a3b9867de3a0495b1a965b4 /ext/bg | |
parent | be23ad7213477500534a2546ca6ef139b23f0af9 (diff) |
move Display context to a new class
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/search.js | 1 | ||||
-rw-r--r-- | ext/bg/search.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index a98d7a9a..00b7ca4b 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -220,6 +220,7 @@ class DisplaySearch extends Display { const {definitions} = await apiTermsFind(query, details, this.optionsContext); this.setContentTerms(definitions, { focus: false, + disableHistory: true, sentence: {text: query, offset: 0}, url: window.location.href }); diff --git a/ext/bg/search.html b/ext/bg/search.html index bac7f01c..fef30456 100644 --- a/ext/bg/search.html +++ b/ext/bg/search.html @@ -71,6 +71,7 @@ <script src="/fg/js/source.js"></script> <script src="/fg/js/util.js"></script> <script src="/mixed/js/audio.js"></script> + <script src="/mixed/js/display-context.js"></script> <script src="/mixed/js/display.js"></script> <script src="/mixed/js/japanese.js"></script> <script src="/mixed/js/scroll.js"></script> |