mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2026-02-25 02:20:17 +00:00
🐛 ui: fixes
- devServer websocket (hostname) - api.creds iff creds_key unset
This commit is contained in:
parent
2838efa0c2
commit
5994cf4991
2 changed files with 2 additions and 2 deletions
|
|
@ -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") &&
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue