no message

This commit is contained in:
2025-12-17 10:11:38 +01:00
parent 883b3815be
commit 9f18caf7d0
2 changed files with 21 additions and 3 deletions
+12 -3
View File
@@ -1,13 +1,22 @@
<div style="padding:12px;font-family:system-ui;">
<div id="out" style="font-size:14px;"></div>
<div style="padding:12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;">
<div id="out"
style="white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
font-size:12px;line-height:1.35;opacity:0.95;">
Warte auf Daten…
</div>
</div>
<script>
window.handleMessage = function (data) {
// Symcon liefert manchmal JSON als String -> sauber parsen
if (typeof data === 'string') {
try { data = JSON.parse(data); } catch(e) {}
}
document.getElementById('out').textContent =
JSON.stringify(data, null, 2);
};
// initial anstoßen
setTimeout(() => requestAction('Refresh', 1), 200);
</script>
</script>