moves userId to index
All checks were successful
CI / deploy (push) Successful in 5m49s

This commit is contained in:
Arindy 2025-02-16 17:07:09 +01:00
parent 53a047217a
commit 87f4d71cc9
2 changed files with 5 additions and 6 deletions

View File

@ -181,12 +181,6 @@ document.addEventListener("DOMContentLoaded", async () => {
document.getElementById('chatOverlayLink').href = url() + '/chatoverlay'
document.addEventListener("DOMContentLoaded", async () => {
if (!localStorage.getItem("userId")) {
localStorage.setItem("userId", self.crypto.randomUUID());
}
})
configurePopover();
})

View File

@ -29,6 +29,11 @@
<meta property="twitter:domain" content="{http:request.authority}">
</head>
<body class="w3-theme-l1">
<script>
if (!localStorage.getItem("userId")) {
localStorage.setItem("userId", self.crypto.randomUUID());
}
</script>
<div class="w3-container w3-content"
style="height: 95vh; display: flex; flex-direction: column; justify-content: space-between; padding: 25px">
<h1 style="text-align: center"><i class="fa-solid fa-dice-d20"></i> Dice-Tower <i class="fa-solid fa-dice-d20"></i>