🐛 ui: fixes

- devServer websocket (hostname)
- api.creds iff creds_key unset
This commit is contained in:
Jörn-Michael Miehe 2026-02-16 00:59:54 +00:00
parent 2838efa0c2
commit 5994cf4991
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ export class API {
}
public static get creds(): AxiosBasicCredentials {
const stored_auth = JSON.parse(localStorage.getItem(this.creds_key) ?? "");
const stored_auth = JSON.parse(localStorage.getItem(this.creds_key) ?? "null");
if (
stored_auth !== null &&
Object.hasOwn(stored_auth, "username") &&

View file

@ -5,7 +5,7 @@ const webpack = require("webpack");
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
host: "0.0.0.0",
host: "127.0.0.1",
},
pages: {
index: {