fixed the issue with the copy link button not working in the extension (#27048)
This commit is contained in:
1 parent
d67bf45527
commit
e7a69d68df
1 file changed
+3
@@ -69,6 +69,9 @@ export default defineContentScript({
|
|||||||
const COMPANION_URL =
|
const COMPANION_URL =
|
||||||
(import.meta.env.EXPO_PUBLIC_COMPANION_DEV_URL as string) || "https://companion.cal.com";
|
(import.meta.env.EXPO_PUBLIC_COMPANION_DEV_URL as string) || "https://companion.cal.com";
|
||||||
iframe.src = COMPANION_URL;
|
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
|
// Use explicit dimensions - Brave has issues with percentage-based sizing
|
||||||
iframe.style.cssText = `
|
iframe.style.cssText = `
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
|
|||||||
Reference in new issue
Block a user