diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index beeaa31a3..148051be6 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -228,13 +228,15 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM = "wl(h);"; // Add console command key eventlistener after name has been synced with id (= wl(jd)) const char HTTP_MODULE_TEMPLATE_REPLACE[] PROGMEM = - "}2%d'>%s (%d}3"; // }2 and }3 are used in below os.replace + "}2%d'>%s (%d)}3"; // }2 and }3 are used in below os.replace +const char HTTP_MODULE_TEMPLATE_NO_INDEX_REPLACE[] PROGMEM = + "}2%d'>%s}3"; // }2 and }3 are used in below os.replace const char HTTP_SCRIPT_MODULE_TEMPLATE[] PROGMEM = #ifdef ESP8266 "var os;" "function sk(s,g){" // s = value, g = id and name - "var o=os.replace(/}2/g,\"