fix searchQueryUpdate
This commit is contained in:
parent
0cd1f8f20a
commit
0112dbab33
@ -695,7 +695,7 @@ class Backend {
|
||||
await Backend._focusTab(tab);
|
||||
if (queryParams.query) {
|
||||
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;
|
||||
|
@ -56,7 +56,7 @@ class DisplaySearch extends Display {
|
||||
]);
|
||||
|
||||
this._runtimeMessageHandlers = new Map([
|
||||
['searchQueryUpdate', ({query}) => { this.onExternalSearchUpdate(query); }]
|
||||
['searchQueryUpdate', this.onExternalSearchUpdate.bind(this)]
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user