aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 1417bdb5..991acf2b 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -349,6 +349,9 @@ class DisplaySearch extends Display {
_search(animate, history) {
const query = this._queryInput.value;
+ const depth = this.depth;
+ const url = window.location.href;
+ const documentTitle = document.title;
const details = {
focus: false,
history,
@@ -357,8 +360,10 @@ class DisplaySearch extends Display {
},
state: {
focusEntry: 0,
+ optionsContext: {depth, url},
+ url,
sentence: {text: query, offset: 0},
- url: window.location.href
+ documentTitle
},
content: {
definitions: null,