web: start: clean some code

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-06-02 23:24:50 +02:00
commit 64bef67a0e
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
10 changed files with 5 additions and 232 deletions

View file

@ -44,12 +44,7 @@ class LoginGate extends HTMLElement {
return
}
// Load config.json defaults to pre-fill the form
let defaults = {}
try {
const r = await fetch('./config.json')
if (r.ok) defaults = await r.json()
} catch { /* no defaults */ }
this.#renderOverlay(defaults)
}