From ab565408e1c35516c1e0816506b2f81f7ee0a725 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Sat, 7 Jun 2025 00:12:22 +0200 Subject: [PATCH] modified: templates/quiz_multiplayer.html --- templates/quiz_multiplayer.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/templates/quiz_multiplayer.html b/templates/quiz_multiplayer.html index cffc898..accd9f0 100644 --- a/templates/quiz_multiplayer.html +++ b/templates/quiz_multiplayer.html @@ -56,6 +56,12 @@ {% endblock %} {% block extra_body %} + {% if local_multiplayer %}
@@ -270,16 +276,9 @@ window.onload = function() { } document.getElementById('startPosition').value = getOption('startPosition', 'start'); - // Prüfe, ob Namen im LocalStorage sind - const names = JSON.parse(localStorage.getItem('quizify_multiplayer_names') || "[]"); - if (names.length < 2) { - // Popup anzeigen - if (document.getElementById('multiplayerPopup')) { - document.getElementById('multiplayerPopup').style.display = 'flex'; - } - } else { - updateMultiplayerUI(); - quizifyReady(); + // Popup immer anzeigen, weil LocalStorage oben geleert wurde + if (document.getElementById('multiplayerPopup')) { + document.getElementById('multiplayerPopup').style.display = 'flex'; } };