aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 11:32:05 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 11:34:06 -0500
commitcfa16ce67540b9513dd4ee8d92a1b59187808fc5 (patch)
treed53fbed4ab1a2a64eff74c8c60bf4129fedc26ec
parent3423ed7d67ff7039d21da0b734e306b2c1024643 (diff)
Include sentence in context on search page
-rw-r--r--ext/bg/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index b4731e6a..0922d938 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -220,7 +220,7 @@ class DisplaySearch extends Display {
const {definitions} = await apiTermsFind(query, details, this.optionsContext);
this.setContentTerms(definitions, {
focus: false,
- sentence: null,
+ sentence: {text: query, offset: 0},
url: window.location.href
});
} else {