web: start: clean some code
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
686b2f62f3
commit
64bef67a0e
10 changed files with 5 additions and 232 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue