fixes for safari extension (#26741)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
co-authored by
CarinaWolli
parent
77f59b1e4d
commit
b6df61d287
@@ -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
|
||||
|
||||
@@ -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/*",
|
||||
|
||||
Reference in New Issue
Block a user