From 76acbe079e8d996bc4c6300848685aef7159cd24 Mon Sep 17 00:00:00 2001 From: Thomas Hooge Date: Sun, 8 Mar 2026 07:43:40 +0100 Subject: [PATCH] Fix export config and web status page --- src/webserver.cpp | 2 +- web/index.html | 4 ++++ web/index.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/webserver.cpp b/src/webserver.cpp index 6966eb1..150f029 100644 --- a/src/webserver.cpp +++ b/src/webserver.cpp @@ -271,7 +271,7 @@ void webserver_init() { doc["salt"] = salt; // security warnings - doc["warnAdminPass"] = config.getString("AdminPassword") == ADMIN_PASS ? "true" : "false"; + doc["warnAdminPass"] = config.getString("adminPassword") == ADMIN_PASS ? "true" : "false"; doc["warnApPass"] = config.getString("apPassword") == WIFI_PASS ? "true" : "false"; doc["status"] = "OK"; diff --git a/web/index.html b/web/index.html index 31ce0f3..82e469e 100644 --- a/web/index.html +++ b/web/index.html @@ -184,5 +184,9 @@ if (!window.isSecureContext) { + + diff --git a/web/index.js b/web/index.js index e6c68d9..e96f508 100644 --- a/web/index.js +++ b/web/index.js @@ -582,7 +582,7 @@ } function downloadData(data, name) { let url = "data:application/octet-stream," + encodeURIComponent(JSON.stringify(data, undefined, 2)); - let target = document.getElementById('downloadXdr'); + let target = document.getElementById('download'); if (!target) return; target.setAttribute('href', url); target.setAttribute('download', name);