debug: replace render() with minimal test to verify innerHTML works
This commit is contained in:
parent
4a5dab49b5
commit
82c2588449
File diff suppressed because one or more lines are too long
|
|
@ -19,7 +19,7 @@
|
||||||
background: #13131f;
|
background: #13131f;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="module" crossorigin src="/assets/main-Bj0X1nRJ.js"></script>
|
<script type="module" crossorigin src="/assets/main-CznV1dRA.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/main-B1PBee3I.css">
|
<link rel="stylesheet" crossorigin href="/assets/main-B1PBee3I.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -471,12 +471,21 @@ body {
|
||||||
|
|
||||||
// ─── Render ──────────────────────────────────────────────────────────
|
// ─── Render ──────────────────────────────────────────────────────────
|
||||||
function render() {
|
function render() {
|
||||||
if (!appEl) return;
|
if (!appEl) {
|
||||||
|
try { window.parent.go.main.App.WriteDebugLog('[iframe] render: appEl is null!'); } catch(e) {}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try { window.parent.go.main.App.WriteDebugLog('[iframe] render: eventsLoaded=' + state.eventsLoaded + ', events=' + (state.events ? state.events.length : 'no-state') + ', cats=' + (state.categories ? state.categories.length : 'no-state')); } catch(e) {}
|
||||||
if (!state.eventsLoaded) {
|
if (!state.eventsLoaded) {
|
||||||
appEl.innerHTML = '<div class="loading-screen">⏳ Загрузка календаря...</div>';
|
appEl.innerHTML = '<div class="loading-screen">⏳ Загрузка календаря...</div>';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
appEl.innerHTML = renderHeader() + renderCategories() + renderView();
|
try {
|
||||||
|
appEl.innerHTML = '<div class="test-msg">IT WORKS! events=' + (state.events ? state.events.length : 0) + ' cats=' + (state.categories ? state.categories.length : 0) + '</div>';
|
||||||
|
try { window.parent.go.main.App.WriteDebugLog('[iframe] innerHTML SET SUCCESSFULLY'); } catch(e) {}
|
||||||
|
} catch(e) {
|
||||||
|
try { window.parent.go.main.App.WriteDebugLog('[iframe] innerHTML error: ' + String(e)); } catch(e2) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderHeader() {
|
function renderHeader() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue