b44b46109c
Update try/catch syntax to prepare for eslint migration
8 lines
116 B
TypeScript
8 lines
116 B
TypeScript
export const isInFrame = () => {
|
|
try {
|
|
return window.self !== window.top;
|
|
} catch {
|
|
return true;
|
|
}
|
|
};
|