erp
This commit is contained in:
parent
2352985e94
commit
5b30011b9f
2 changed files with 2 additions and 2 deletions
|
@ -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}`} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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}`} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue