Fix: missing await
This commit is contained in:
parent
96959f9f21
commit
1127dbe71e
|
@ -106,7 +106,7 @@ bgReady.all.then(() => {
|
||||||
async function openInstallerPage(tabId, url, {code, inTab} = {}) {
|
async function openInstallerPage(tabId, url, {code, inTab} = {}) {
|
||||||
const newUrl = `${URLS.installUsercss}?updateUrl=${encodeURIComponent(url)}`;
|
const newUrl = `${URLS.installUsercss}?updateUrl=${encodeURIComponent(url)}`;
|
||||||
if (inTab) {
|
if (inTab) {
|
||||||
const tab = browser.tabs.get(tabId);
|
const tab = await browser.tabs.get(tabId);
|
||||||
return openURL({
|
return openURL({
|
||||||
url: `${newUrl}&tabId=${tabId}`,
|
url: `${newUrl}&tabId=${tabId}`,
|
||||||
active: tab.active,
|
active: tab.active,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user