This commit is contained in:
Steve Ruiz 2022-07-08 21:31:32 +01:00
parent 2352985e94
commit 5b30011b9f
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ interface RoomProps {
} }
export default function Room({ id, isUser, isSponsor }: RoomProps) { export default function Room({ id, isUser, isSponsor }: RoomProps) {
if (typeof window !== 'undefined') { if (typeof window !== 'undefined' && window.self !== window.top) {
return <IFrameWarning url={`https://tldraw.com/r/${id}`} /> return <IFrameWarning url={`https://tldraw.com/r/${id}`} />
} }

View file

@ -15,7 +15,7 @@ interface RoomProps {
} }
export default function Room({ id, isUser, isSponsor }: RoomProps) { export default function Room({ id, isUser, isSponsor }: RoomProps) {
if (typeof window !== 'undefined') { if (typeof window !== 'undefined' && window.self !== window.top) {
return <IFrameWarning url={`https://tldraw.com/v/${id}`} /> return <IFrameWarning url={`https://tldraw.com/v/${id}`} />
} }