From cfa16ce67540b9513dd4ee8d92a1b59187808fc5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 26 Nov 2019 11:32:05 -0500 Subject: [PATCH] Include sentence in context on search page --- ext/bg/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {