From 815a929ac5a384776450d2817e046e5cafe56e25 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 8 May 2024 20:50:42 +0200 Subject: [PATCH] login indicator duplicity bugfix --- res/index/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/res/index/script.js b/res/index/script.js index 0862289..907ea0e 100644 --- a/res/index/script.js +++ b/res/index/script.js @@ -59,8 +59,10 @@ function show_register() function set_login_uname(uname) { + if (document.getElementById("login_indicator").style.visibility == "visible") return; + document.getElementById("login_indicator").style.visibility = "visible"; - document.getElementById("login_indicator").innerText += " " + uname; + document.getElementById("login_indicator_text").innerText += " " + uname; document.getElementById("login_buttons").style.visibility = "hidden"; document.getElementById("logout_button").style.visibility = "visible";