fix searchQueryUpdate
This commit is contained in:
parent
0cd1f8f20a
commit
0112dbab33
@ -695,7 +695,7 @@ class Backend {
|
|||||||
await Backend._focusTab(tab);
|
await Backend._focusTab(tab);
|
||||||
if (queryParams.query) {
|
if (queryParams.query) {
|
||||||
await new Promise((resolve) => chrome.tabs.sendMessage(
|
await new Promise((resolve) => chrome.tabs.sendMessage(
|
||||||
tab.id, {action: 'searchQueryUpdate', params: {query: queryParams.query}}, resolve
|
tab.id, {action: 'searchQueryUpdate', params: {text: queryParams.query}}, resolve
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -56,7 +56,7 @@ class DisplaySearch extends Display {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
this._runtimeMessageHandlers = new Map([
|
this._runtimeMessageHandlers = new Map([
|
||||||
['searchQueryUpdate', ({query}) => { this.onExternalSearchUpdate(query); }]
|
['searchQueryUpdate', this.onExternalSearchUpdate.bind(this)]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user