mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-15 12:31:21 +00:00
Remove comments
This commit is contained in:
parent
1de84262b1
commit
72f8f8ddcd
@ -43,11 +43,6 @@ export const AppViewer = forwardRef<HTMLIFrameElement, AppViewerProps>(
|
|||||||
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;
|
||||||
@ -64,11 +59,6 @@ export const AppViewer = forwardRef<HTMLIFrameElement, AppViewerProps>(
|
|||||||
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]);
|
||||||
|
|
||||||
@ -86,12 +76,6 @@ export const AppViewer = forwardRef<HTMLIFrameElement, AppViewerProps>(
|
|||||||
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;
|
||||||
}
|
}
|
||||||
@ -113,7 +97,6 @@ export const AppViewer = forwardRef<HTMLIFrameElement, AppViewerProps>(
|
|||||||
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' },
|
||||||
@ -129,7 +112,6 @@ export const AppViewer = forwardRef<HTMLIFrameElement, AppViewerProps>(
|
|||||||
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(
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@ import { AppViewer } from './AppViewer';
|
|||||||
import Frame from 'react-frame-component';
|
import Frame from 'react-frame-component';
|
||||||
|
|
||||||
type AppViewerContainerProps = {
|
type AppViewerContainerProps = {
|
||||||
app: any; // Replace `any` with the correct type of `tab` if available
|
app: any;
|
||||||
isSelected: boolean;
|
isSelected: boolean;
|
||||||
hide: boolean;
|
hide: boolean;
|
||||||
isDevMode: boolean;
|
isDevMode: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user