fix: user has to login every time chrome sidepanel is opened (#5544)
We can pass the auth tokens to our front app via post message, which will also allow us to pass route names to navigate on it
This commit is contained in:
7
packages/twenty-front/src/utils/isInIframe.ts
Normal file
7
packages/twenty-front/src/utils/isInIframe.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export const isInFrame = () => {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user