wire localhost screens

This commit is contained in:
boufni95 2024-07-19 22:30:09 +02:00
parent c2cab40a2e
commit a8d447110f
36 changed files with 6075 additions and 4966 deletions

View file

@ -96,9 +96,10 @@
fetch("/wizard/state").then((res) => {
if (res.status === 200) {
res.json().then((data) => {
if (data.already_initialized) {
if (data.admin_linked) {
location.href = 'status.html'
console.log("already init")
} else if (data.config_sent) {
location.href = 'connect.html'
} else {
console.log("ready to initialize")
}