diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-02-10 01:16:06 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-02-10 01:16:06 +0200 |
commit | 460d306f60fa745368c8249e4bc4bdb0d0448f25 (patch) | |
tree | 18f290d7375e6d407fce662888cb03b5f7fed357 /ext/bg/js/backend.js | |
parent | 89729d8c20e8d1113e640a46f448a9734da1fe56 (diff) |
update popup search with chrome.tabs.sendMessage
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index adfb4f10..668d1fb7 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -619,7 +619,9 @@ class Backend { if (tab !== null) { await Backend._focusTab(tab); if (queryParams.query) { - await new Promise((resolve) => chrome.tabs.update(tab.id, {url}, resolve)); + await new Promise((resolve) => chrome.tabs.sendMessage( + tab.id, {action: 'searchQueryUpdate', params: {query: queryParams.query}}, resolve + )); } return true; } |