mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-07 14:03:33 +02:00
Fix username when unauthenticated
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import Cookie from "cookie-universal";
|
import Cookie from "cookie-universal";
|
||||||
const cookies = Cookie();
|
const cookies = Cookie();
|
||||||
export let user = cookies.get("wguser", { fromRes: true});
|
export let user = cookies.get("wguser", { fromRes: true}) || "anonymous";
|
||||||
|
|
||||||
export let url = "";
|
export let url = "";
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user