From 5b30011b9f976a85d45fc9be0d3c3b05bc8f6dee Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Fri, 8 Jul 2022 21:31:32 +0100 Subject: [PATCH] erp --- apps/www/pages/r/[id].tsx | 2 +- apps/www/pages/v/[id].tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/pages/r/[id].tsx b/apps/www/pages/r/[id].tsx index ee580d8cb..014c3f511 100644 --- a/apps/www/pages/r/[id].tsx +++ b/apps/www/pages/r/[id].tsx @@ -14,7 +14,7 @@ interface RoomProps { } export default function Room({ id, isUser, isSponsor }: RoomProps) { - if (typeof window !== 'undefined') { + if (typeof window !== 'undefined' && window.self !== window.top) { return } diff --git a/apps/www/pages/v/[id].tsx b/apps/www/pages/v/[id].tsx index dc2514409..55d745b80 100644 --- a/apps/www/pages/v/[id].tsx +++ b/apps/www/pages/v/[id].tsx @@ -15,7 +15,7 @@ interface RoomProps { } export default function Room({ id, isUser, isSponsor }: RoomProps) { - if (typeof window !== 'undefined') { + if (typeof window !== 'undefined' && window.self !== window.top) { return }