diff --git a/platformio.ini b/platformio.ini index 73f56a9e9..78b5d8e5e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -162,7 +162,7 @@ lib_compat_mode = strict lib_deps = fastled/FastLED @ 3.5.0 IRremoteESP8266 @ 2.8.2 - https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.4 + https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.5 #For use of the TTGO T-Display ESP32 Module with integrated TFT display uncomment the following line #TFT_eSPI #For use SSD1306 OLED display uncomment following diff --git a/wled00/data/settings_sec.htm b/wled00/data/settings_sec.htm index f39361261..a6098300c 100644 --- a/wled00/data/settings_sec.htm +++ b/wled00/data/settings_sec.htm @@ -24,6 +24,8 @@ scE.addEventListener("load", () => { //console.log("File loaded"); GetV(); + setBckFilename(gId("bckcfg")); + setBckFilename(gId("bckpresets")); }); // error event scE.addEventListener("error", (ev) => { @@ -59,6 +61,9 @@ event.preventDefault(); return false; } + function setBckFilename(x) { + x.setAttribute("download","wled_" + x.getAttribute("download") + (sd=="WLED"?"":("_" +sd))); + } function S() { if (window.location.protocol == "file:") { loc = true; @@ -101,9 +106,9 @@ Enable ArduinoOTA: