diff --git a/ESP32_AP-Flasher/data/www/main.js.gz b/ESP32_AP-Flasher/data/www/main.js.gz index 0694803d..b74ca4bf 100644 Binary files a/ESP32_AP-Flasher/data/www/main.js.gz and b/ESP32_AP-Flasher/data/www/main.js.gz differ diff --git a/ESP32_AP-Flasher/wwwroot/main.js b/ESP32_AP-Flasher/wwwroot/main.js index c5557758..8b15c36a 100644 --- a/ESP32_AP-Flasher/wwwroot/main.js +++ b/ESP32_AP-Flasher/wwwroot/main.js @@ -726,7 +726,7 @@ document.addEventListener("loadTab", function (event) { fetch("/get_ap_config") .then(response => response.json()) .then(data => { - if (data.alias) { + if (data && 'alias' in data) { apConfig = data; $('#apcfgalias').value = data.alias; $('#apcfgchid').value = data.channel; @@ -1186,6 +1186,8 @@ function processZlib(data) { const subBuffer = data.subarray(4); try { const inflatedBuffer = pako.inflate(subBuffer); + // to constrain window size for testing: + // const inflatedBuffer = pako.inflate(subBuffer, { windowBits: 12 }); const headerSize = inflatedBuffer[0]; return inflatedBuffer.subarray(headerSize); } catch (err) {