diff --git a/web/packages/extension/src/background.ts b/web/packages/extension/src/background.ts index 5fe6e86e81a9..e8b798471525 100644 --- a/web/packages/extension/src/background.ts +++ b/web/packages/extension/src/background.ts @@ -227,7 +227,11 @@ async function disable() { await disableSWFTakeover(); } -async function onAdded(permissions: chrome.permissions.Permissions) { +async function onAdded( + permissions: + | browser.permissions.Permissions + | chrome.permissions.Permissions, +) { if ( permissions.origins && permissions.origins.length >= 1 &&