fix searchQueryUpdate

This commit is contained in:
siikamiika 2020-03-09 04:06:31 +02:00
parent 0cd1f8f20a
commit 0112dbab33
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)]
]); ]);
} }