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,