We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacdab1 commit b832fb1Copy full SHA for b832fb1
src/frontend/apps/impress/src/layouts/MainLayout.tsx
@@ -30,6 +30,9 @@ export function MainLayout({
30
// @ts-expect-error cozyBridge is injected by Cozy platform
31
window._cozyBridge.requestParentOrigin().then(origin => {
32
setIsInsideCozy(Boolean(origin));
33
+ if(Boolean(origin)) {
34
+ window.top?.postMessage('embedded', '*')
35
+ }
36
});
37
}, []);
38
0 commit comments