Skip to content

Scheduling infrastructure for absolutely everyone.

fixed the issue with the copy link button not working in the extension (#27048)

Dhairyashil Shindee7a69d68dfd1
diff --git a/companion/extension/entrypoints/content.ts b/companion/extension/entrypoints/content.ts
index f178c91c721..ce6a5a5a804 100644
--- a/companion/extension/entrypoints/content.ts
+++ b/companion/extension/entrypoints/content.ts
@@ -69,6 +69,9 @@ export default defineContentScript({
const COMPANION_URL =
(import.meta.env.EXPO_PUBLIC_COMPANION_DEV_URL as string) || "https://companion.cal.com";
iframe.src = COMPANION_URL;
+ // Enable clipboard access for the cross-origin iframe
+ // This allows the companion app to use navigator.clipboard.writeText()
+ iframe.allow = "clipboard-write; clipboard-read";
// Use explicit dimensions - Brave has issues with percentage-based sizing
iframe.style.cssText = `
position: absolute !important;