From d03d964f45e478588cfdac415cea958b5d028a44 Mon Sep 17 00:00:00 2001 From: IoT Manager <153532194+dmitryBorisenkoXioneer@users.noreply.github.com> Date: Sun, 25 Aug 2024 01:26:34 +0200 Subject: [PATCH] . --- src/App.svelte | 5 +++- src/WebSocketManager.js | 61 +++++++---------------------------------- 2 files changed, 14 insertions(+), 52 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 615b8d1..67af0ea 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -38,6 +38,9 @@ const wsManager = new WebSocketManager(deviceList, debug); + let layoutJson = wsManager.layoutJson; + $: layoutJson = wsManager.layoutJson; + router.subscribe(handleNavigation); function handleNavigation() { @@ -283,7 +286,7 @@ {:else} - wsManager.wsPush(ws, topic, status)} /> + wsManager.wsPush(ws, topic, status)} />