🐛 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 { 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 ( if (
stored_auth !== null && stored_auth !== null &&
Object.hasOwn(stored_auth, "username") && Object.hasOwn(stored_auth, "username") &&

View file

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