diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-15 18:53:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 18:53:03 -0400 |
commit | 9addd3f6d1c727960ce93192abbf50ccecd4b565 (patch) | |
tree | 1bf96f43d2ee04f4cc8da7bd9291cde84902ab10 /ext/js/background | |
parent | 49b603c7561c1f39cd79c969e00b6069cedb2397 (diff) |
Fix search tab not focusing correctly (#1529)
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/backend.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index ff119cf2..5cbb65cb 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -762,8 +762,9 @@ class Backend { }; const openInTab = async () => { - const tab = await this._findTabs(1000, false, predicate, false); - if (tab !== null) { + const tabInfo = await this._findTabs(1000, false, predicate, false); + if (tabInfo !== null) { + const {tab} = tabInfo; await this._focusTab(tab); if (queryParams.query) { await this._updateSearchQuery(tab.id, queryParams.query, true); |