From be5c3af318967c2b70dd056b9c34605604e221dd Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Fri, 30 May 2025 09:12:00 +0200 Subject: [PATCH] Add comment (temporary) --- src/components/Apps/AppViewer.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/components/Apps/AppViewer.tsx b/src/components/Apps/AppViewer.tsx index 98a0b8a..9c82ebd 100644 --- a/src/components/Apps/AppViewer.tsx +++ b/src/components/Apps/AppViewer.tsx @@ -36,6 +36,11 @@ export const AppViewer = forwardRef( if (app?.isPreview) return; if (isDevMode) { setUrl(app?.url + `?theme=${themeMode}&lang=${currentLang}`); + console.log( + 'AAAAAAAAAAA---->' + + app.url + + `&theme=${themeMode}&lang=${currentLang}` + ); // TODO remove comment return; } let hasQueryParam = false; @@ -52,8 +57,14 @@ export const AppViewer = forwardRef( if (app?.isPreview && app?.url) { resetHistory(); setUrl(app.url + `&theme=${themeMode}&lang=${currentLang}`); + console.log( + 'AAAAAAAAAAA---->' + + app.url + + `&theme=${themeMode}&lang=${currentLang}` + ); // TODO remove comment } }, [app?.url, app?.isPreview]); + const defaultUrl = useMemo(() => { return url; }, [url, isDevMode]); @@ -68,6 +79,12 @@ export const AppViewer = forwardRef( app?.url + `?time=${Date.now()}&theme=${themeMode}&lang=${currentLang}` ); + + console.log( + 'AAAAAAAAAAA---->' + + app?.url + + `?time=${Date.now()}&theme=${themeMode}&lang=${currentLang}` + ); // TODO remove comment } return; } @@ -89,6 +106,7 @@ export const AppViewer = forwardRef( if (!iframe) return; try { + console.log('THEME_CHANGED---->' + iframe.src); // TODO remove comment const targetOrigin = new URL(iframe.src).origin; iframe.contentWindow?.postMessage( { action: 'THEME_CHANGED', theme: themeMode, requestedHandler: 'UI' }, @@ -104,6 +122,7 @@ export const AppViewer = forwardRef( if (!iframe) return; try { + console.log('LANGUAGE_CHANGED---->' + iframe.src); // TODO remove comment const targetOrigin = new URL(iframe.src).origin; iframe.contentWindow?.postMessage( {