Include sentence in context on search page
This commit is contained in:
parent
3423ed7d67
commit
cfa16ce675
@ -220,7 +220,7 @@ class DisplaySearch extends Display {
|
|||||||
const {definitions} = await apiTermsFind(query, details, this.optionsContext);
|
const {definitions} = await apiTermsFind(query, details, this.optionsContext);
|
||||||
this.setContentTerms(definitions, {
|
this.setContentTerms(definitions, {
|
||||||
focus: false,
|
focus: false,
|
||||||
sentence: null,
|
sentence: {text: query, offset: 0},
|
||||||
url: window.location.href
|
url: window.location.href
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user