debug: add try-catch around iframe render() to catch any JS errors

This commit is contained in:
2026-06-08 13:43:13 +08:00
parent f4a25128ae
commit 4a5dab49b5
2 changed files with 4 additions and 2 deletions
@@ -436,7 +436,7 @@ body {
if (msg.categories) state.categories = msg.categories;
state.eventsLoaded = true;
state.panelReady = true;
render();
try { render(); } catch(e) { try { window.parent.go.main.App.WriteDebugLog('[iframe] render error: ' + String(e) + ' ' + JSON.stringify({message: e.message, stack: e.stack?.substring(0,200)})); } catch(e2) {} }
break;
case 'drop':