summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/js/background/backend.js5
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);