mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-15 04:21:21 +00:00
Add comment (temporary)
This commit is contained in:
parent
0b0f5e0c07
commit
be5c3af318
@ -36,6 +36,11 @@ export const AppViewer = forwardRef(
|
|||||||
if (app?.isPreview) return;
|
if (app?.isPreview) return;
|
||||||
if (isDevMode) {
|
if (isDevMode) {
|
||||||
setUrl(app?.url + `?theme=${themeMode}&lang=${currentLang}`);
|
setUrl(app?.url + `?theme=${themeMode}&lang=${currentLang}`);
|
||||||
|
console.log(
|
||||||
|
'AAAAAAAAAAA---->' +
|
||||||
|
app.url +
|
||||||
|
`&theme=${themeMode}&lang=${currentLang}`
|
||||||
|
); // TODO remove comment
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let hasQueryParam = false;
|
let hasQueryParam = false;
|
||||||
@ -52,8 +57,14 @@ export const AppViewer = forwardRef(
|
|||||||
if (app?.isPreview && app?.url) {
|
if (app?.isPreview && app?.url) {
|
||||||
resetHistory();
|
resetHistory();
|
||||||
setUrl(app.url + `&theme=${themeMode}&lang=${currentLang}`);
|
setUrl(app.url + `&theme=${themeMode}&lang=${currentLang}`);
|
||||||
|
console.log(
|
||||||
|
'AAAAAAAAAAA---->' +
|
||||||
|
app.url +
|
||||||
|
`&theme=${themeMode}&lang=${currentLang}`
|
||||||
|
); // TODO remove comment
|
||||||
}
|
}
|
||||||
}, [app?.url, app?.isPreview]);
|
}, [app?.url, app?.isPreview]);
|
||||||
|
|
||||||
const defaultUrl = useMemo(() => {
|
const defaultUrl = useMemo(() => {
|
||||||
return url;
|
return url;
|
||||||
}, [url, isDevMode]);
|
}, [url, isDevMode]);
|
||||||
@ -68,6 +79,12 @@ export const AppViewer = forwardRef(
|
|||||||
app?.url +
|
app?.url +
|
||||||
`?time=${Date.now()}&theme=${themeMode}&lang=${currentLang}`
|
`?time=${Date.now()}&theme=${themeMode}&lang=${currentLang}`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
'AAAAAAAAAAA---->' +
|
||||||
|
app?.url +
|
||||||
|
`?time=${Date.now()}&theme=${themeMode}&lang=${currentLang}`
|
||||||
|
); // TODO remove comment
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -89,6 +106,7 @@ export const AppViewer = forwardRef(
|
|||||||
if (!iframe) return;
|
if (!iframe) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
console.log('THEME_CHANGED---->' + iframe.src); // TODO remove comment
|
||||||
const targetOrigin = new URL(iframe.src).origin;
|
const targetOrigin = new URL(iframe.src).origin;
|
||||||
iframe.contentWindow?.postMessage(
|
iframe.contentWindow?.postMessage(
|
||||||
{ action: 'THEME_CHANGED', theme: themeMode, requestedHandler: 'UI' },
|
{ action: 'THEME_CHANGED', theme: themeMode, requestedHandler: 'UI' },
|
||||||
@ -104,6 +122,7 @@ export const AppViewer = forwardRef(
|
|||||||
if (!iframe) return;
|
if (!iframe) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
console.log('LANGUAGE_CHANGED---->' + iframe.src); // TODO remove comment
|
||||||
const targetOrigin = new URL(iframe.src).origin;
|
const targetOrigin = new URL(iframe.src).origin;
|
||||||
iframe.contentWindow?.postMessage(
|
iframe.contentWindow?.postMessage(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user