From 0d6b0f8f2d9ca4d8ea0af9181b7f32a5a4811064 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Fri, 30 May 2025 14:03:19 +0300 Subject: [PATCH] fixes --- src/components/Apps/AppViewer.tsx | 4 ++-- src/components/Apps/AppsDevModeNavBar.tsx | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/Apps/AppViewer.tsx b/src/components/Apps/AppViewer.tsx index 38cfe71..33ade79 100644 --- a/src/components/Apps/AppViewer.tsx +++ b/src/components/Apps/AppViewer.tsx @@ -86,7 +86,7 @@ export const AppViewer = forwardRef( useEffect(() => { const iframe = iframeRef?.current; - if (!iframe) return; + if (!iframe || !iframe?.src) return; try { const targetOrigin = new URL(iframe.src).origin; @@ -101,7 +101,7 @@ export const AppViewer = forwardRef( useEffect(() => { const iframe = iframeRef?.current; - if (!iframe) return; + if (!iframe || !iframe?.src) return; try { const targetOrigin = new URL(iframe.src).origin; diff --git a/src/components/Apps/AppsDevModeNavBar.tsx b/src/components/Apps/AppsDevModeNavBar.tsx index 1ce7d76..548f1d2 100644 --- a/src/components/Apps/AppsDevModeNavBar.tsx +++ b/src/components/Apps/AppsDevModeNavBar.tsx @@ -32,13 +32,7 @@ export const AppsDevModeNavBar = () => { 'tutorial', ]); const theme = useTheme(); - const { t } = useTranslation([ - 'auth', - 'core', - 'group', - 'question', - 'tutorial', - ]); + const [isNewTabWindow, setIsNewTabWindow] = useState(false); const tabsRef = useRef(null);