Scheduling infrastructure for absolutely everyone.
fixes for safari extension (#26741)
Carina Wollendorferb6df61d2875f
diff --git a/companion/extension/entrypoints/background/index.ts b/companion/extension/entrypoints/background/index.tsindex 0b863d0f723..d48cf40b192 100644--- a/companion/extension/entrypoints/background/index.ts+++ b/companion/extension/entrypoints/background/index.ts@@ -277,7 +277,8 @@ function getTabsAPI(): typeof chrome.tabs | null {// Get action API with cross-browser supportfunction getActionAPI(): typeof chrome.action | null {const api = getBrowserAPI();- return api?.action || null;+ // Safari uses browserAction (Manifest V2), Chrome uses action (Manifest V3)+ return api?.action || (api as any)?.browserAction || null;}// Check if the URL is a restricted page where content scripts can't rundiff --git a/companion/wxt.config.ts b/companion/wxt.config.tsindex a79b13b4725..5bd7a4eabb3 100644--- a/companion/wxt.config.ts+++ b/companion/wxt.config.ts@@ -59,7 +59,12 @@ export default defineConfig({name: "Cal.com Companion",version: "1.7.5",description: "Your calendar companion for quick booking and scheduling",- permissions: ["activeTab", "storage", "identity"],+ permissions: [+ "activeTab",+ "storage",+ // Safari doesn't support Chrome's identity API+ ...(browserTarget !== "safari" ? ["identity"] : []),+ ],host_permissions: ["https://companion.cal.com/*","https://api.cal.com/*",