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;
|
||||
}
|
||||
</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">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -471,12 +471,21 @@ body {
|
|||
|
||||
// ─── 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) {
|
||||
appEl.innerHTML = '<div class="loading-screen">⏳ Загрузка календаря...</div>';
|
||||
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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue