disabled automatic wifi scan when the configuration page loads to avoid disconnecting and added warning

This commit is contained in:
RaffaelW 2024-12-14 22:42:59 +01:00
parent d9afabbdac
commit 6276b1f74b
2 changed files with 14 additions and 3 deletions

View file

@ -6,6 +6,8 @@ import {
const form = document.querySelector("form");
export let data = {};
export async function loadData(timeout = null) {
const req = await fetch("/config", {
method: "GET",
@ -38,7 +40,7 @@ export function writeDataToInput(data) {
showLoadingScreen("Konfiguration wird geladen...");
try {
const data = await loadData();
data = await loadData();
hideLoadingScreen();
writeDataToInput(data);
} catch (error) {