Fix: missing await

This commit is contained in:
eight04 2021-12-16 02:19:10 +08:00
parent 96959f9f21
commit 1127dbe71e

View File

@ -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,