From 218d62686afb7212b950870c1873e08789bdf8b2 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 6 Apr 2022 12:41:06 +0200 Subject: [PATCH] Fix javascript regression failing page refreshes --- tasmota/xdrv_01_webserver.ino | 4 ++-- tasmota/xdrv_23_zigbee_A_impl.ino | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index b90247d95..f6539799c 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -116,7 +116,7 @@ const char HTTP_SCRIPT_HIDE[] PROGMEM = "}"; const char HTTP_SCRIPT_RELOAD_TIME[] PROGMEM = - "setTimeout(()=>{location.href='.';},%d);"; + "setTimeout(function(){location.href='.';},%d);"; #ifdef USE_UNISHOX_COMPRESSION #include "./html_compressed/HTTP_SCRIPT_CONSOL.h" @@ -984,7 +984,7 @@ void WebRestart(uint32_t type) #if ((RESTART_AFTER_INITIAL_WIFI_CONFIG) && (AFTER_INITIAL_WIFI_CONFIG_GO_TO_NEW_IP)) // In case of type 3 (New network has been configured) go to the new device's IP in the new Network if (3 == type) { - WSContentSend_P("setTimeout(()=>{location.href='http://%_I';},%d);", + WSContentSend_P("setTimeout(function(){location.href='http://%_I';},%d);", (uint32_t)WiFi.localIP(), HTTP_RESTART_RECONNECT_TIME ); diff --git a/tasmota/xdrv_23_zigbee_A_impl.ino b/tasmota/xdrv_23_zigbee_A_impl.ino index 8cc355a6b..41ee70119 100644 --- a/tasmota/xdrv_23_zigbee_A_impl.ino +++ b/tasmota/xdrv_23_zigbee_A_impl.ino @@ -1716,7 +1716,7 @@ const char ZB_WEB_U[] PROGMEM = // index 4 // Auto-refresh //=ZB_WEB_AUTO_REFRESH - "" + "" "\0" // +++++++++++++++++++++++++++++++++++++++++++++++++++++++