fixes for safari extension (#26741)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina Wollendorfer
2026-01-12 16:50:44 +05:30
committed by GitHub
co-authored by CarinaWolli
parent 77f59b1e4d
commit b6df61d287
2 changed files with 8 additions and 2 deletions
@@ -277,7 +277,8 @@ function getTabsAPI(): typeof chrome.tabs | null {
// Get action API with cross-browser support
function 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 run
+6 -1
View File
@@ -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/*",