Files
twenty/packages/twenty-front/src/utils/isInIframe.ts
T
Félix Malfait b44b46109c Update try/catch syntax (#13732)
Update try/catch syntax to prepare for eslint migration
2025-08-07 22:19:43 +02:00

8 lines
116 B
TypeScript

export const isInFrame = () => {
try {
return window.self !== window.top;
} catch {
return true;
}
};