From 3f6db361875fc66833390569cc9b5a986e64e71f Mon Sep 17 00:00:00 2001
From: Theo Arends <11044339+arendst@users.noreply.github.com>
Date: Sun, 17 Feb 2019 14:43:07 +0100
Subject: [PATCH] Update xdrv_01_webserver.ino
Fix 404 error
---
sonoff/xdrv_01_webserver.ino | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino
index b796de246..60e49407b 100644
--- a/sonoff/xdrv_01_webserver.ino
+++ b/sonoff/xdrv_01_webserver.ino
@@ -94,7 +94,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"function lc(p){"
"la('?t='+p);" // ?t related to WebGetArg("t", tmp, sizeof(tmp));
"}"
- "window.onload=la;";
+ "window.onload=la();";
const char HTTP_SCRIPT_WIFI[] PROGMEM =
"function c(l){"
@@ -152,8 +152,9 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
const char HTTP_SCRIPT_MODULE_TEMPLATE[] PROGMEM =
"var os;"
"function sk(s,g){" // s = value, g = id and name
- "var o=os.replace(/}1/g,\"