From 1127dbe71e1b442ac609f923d05d4a8b3acd3866 Mon Sep 17 00:00:00 2001 From: eight04 Date: Thu, 16 Dec 2021 02:19:10 +0800 Subject: [PATCH] Fix: missing await --- background/usercss-install-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/usercss-install-helper.js b/background/usercss-install-helper.js index 7b30ca61..d99b1f80 100644 --- a/background/usercss-install-helper.js +++ b/background/usercss-install-helper.js @@ -106,7 +106,7 @@ bgReady.all.then(() => { async function openInstallerPage(tabId, url, {code, inTab} = {}) { const newUrl = `${URLS.installUsercss}?updateUrl=${encodeURIComponent(url)}`; if (inTab) { - const tab = browser.tabs.get(tabId); + const tab = await browser.tabs.get(tabId); return openURL({ url: `${newUrl}&tabId=${tabId}`, active: tab.active,