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

This commit is contained in:
Dhairyashil Shinde
2026-01-20 09:47:00 -03:00
committed by GitHub
parent d67bf45527
commit e7a69d68df
@@ -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;