From 9addd3f6d1c727960ce93192abbf50ccecd4b565 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 15 Mar 2021 18:53:03 -0400 Subject: Fix search tab not focusing correctly (#1529) --- ext/js/background/backend.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/js/background') 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); -- cgit v1.2.3