From 87f4d71cc9d9df551c50f1f2c1564063ce77330a Mon Sep 17 00:00:00 2001 From: Arindy Date: Sun, 16 Feb 2025 17:07:09 +0100 Subject: [PATCH] moves userId to index --- src/main/resources/META-INF/resources/app.js | 6 ------ src/main/resources/templates/index.html | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/resources/META-INF/resources/app.js b/src/main/resources/META-INF/resources/app.js index 61bf66d..2e3ddb4 100644 --- a/src/main/resources/META-INF/resources/app.js +++ b/src/main/resources/META-INF/resources/app.js @@ -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(); }) diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 00399d2..575a1d8 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -29,6 +29,11 @@ +

Dice-Tower