Skip to content

Commit b832fb1

Browse files
committed
feat: Add embedded declaration for shell loading
1 parent bacdab1 commit b832fb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/frontend/apps/impress/src/layouts/MainLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export function MainLayout({
3030
// @ts-expect-error cozyBridge is injected by Cozy platform
3131
window._cozyBridge.requestParentOrigin().then(origin => {
3232
setIsInsideCozy(Boolean(origin));
33+
if(Boolean(origin)) {
34+
window.top?.postMessage('embedded', '*')
35+
}
3336
});
3437
}, []);
3538

0 commit comments

Comments
 (0)