diff --git a/src/App.svelte b/src/App.svelte
index 705dbca..e74ec5c 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -371,6 +371,7 @@
function saveConfig() {
generateLayout();
+ wsSendMsg(wsSelected, "/tuoyal" + JSON.stringify(generateLayout()));
wsSendMsg(wsSelected, "/gifnoc" + JSON.stringify(configJson));
clearData();
sendCurrentPageName();
@@ -398,9 +399,10 @@
if (error) console.log("[e]", "error, widget not found: " + setWidget);
}
if (debug) console.log("[i]", JSON.stringify(layout));
- wigets = layout;
- wigets = wigets;
- wigetsUpdate();
+ return layout;
+ //wigets = layout;
+ //wigets = wigets;
+ //wigetsUpdate();
}
function clearData() {
@@ -462,7 +464,6 @@
}
function wigetsUpdate() {
- //wigets = JSON.parse(document.getElementById("text1").value);
findNewPage();
}
@@ -696,10 +697,6 @@
{/each}
{/each}
-
-
-
-
@@ -815,6 +812,9 @@
+
+
+