финальная рабочая версия

This commit is contained in:
Dmitry Borisenko
2022-01-25 22:21:42 +01:00
parent badbc3d4b1
commit 37c9e9b169

View File

@@ -293,10 +293,6 @@
if (debug) console.log("[i]", "configJson start!"); if (debug) console.log("[i]", "configJson start!");
} }
if (configJsonFlag && result != "/st/config.json" && result != "/end/config.json") { if (configJsonFlag && result != "/st/config.json" && result != "/end/config.json") {
//от этой хрени надо избавиться
if (result.includes("/gifnoc.json")) {
result = result.replace("/gifnoc.json", "");
}
configJsonBuf = configJsonBuf + result; configJsonBuf = configJsonBuf + result;
} }
if (result === "/end/config.json") { if (result === "/end/config.json") {
@@ -344,7 +340,7 @@
} }
function sendConfigJson() { function sendConfigJson() {
wsSendMsg(wsSelected, "/gifnoc.json" + JSON.stringify(configJson)); wsSendMsg(wsSelected, "/gifnoc" + JSON.stringify(configJson));
clearData(); clearData();
sendCurrentPageName(); sendCurrentPageName();
} }