aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-07 22:43:14 -0500
committerGitHub <noreply@github.com>2020-11-07 22:43:14 -0500
commitdb9ec4c4495404ad3ebc9ce56866c3631cedf8dc (patch)
tree0d9e1744e6cd9d3ae42ea328a82a8e357b90b8e3 /ext/bg
parentbe952a1857da88de33322a8070252881d7b99391 (diff)
Fix search tab opening having some errors (#1004)
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/backend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 65df0d49..5462d4c9 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -1289,8 +1289,8 @@ class Backend {
const promises = [];
for (const tab of tabs) {
- const promise = this._getTabUrl(tab);
- promise.then(checkTabUrl);
+ const promise = this._getTabUrl(tab.id);
+ promise.then((url) => checkTabUrl({url, tab}));
promises.push(promise);
}