From 193cdf05b0581003d7cfc1688e3ec5818f74a6ef Mon Sep 17 00:00:00 2001 From: Daniel Jacobs Date: Mon, 6 Jan 2025 15:49:46 -0500 Subject: [PATCH] extension: Fix types which are changed in latest @types/chrome --- web/packages/extension/src/background.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 &&