From 6d5a662a07d9e79a3e4ef95b0af966763283f09e Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Sat, 7 Jun 2025 00:21:27 +0200 Subject: [PATCH] modified: templates/quiz_multiplayer.html --- templates/quiz_multiplayer.html | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/templates/quiz_multiplayer.html b/templates/quiz_multiplayer.html index fd35d22..accd9f0 100644 --- a/templates/quiz_multiplayer.html +++ b/templates/quiz_multiplayer.html @@ -57,12 +57,10 @@ {% endblock %} {% block extra_body %} {% if local_multiplayer %}
@@ -106,7 +104,6 @@ let correctAnswer = ""; const i18n = {{ translations|tojson }}; window.onSpotifyWebPlaybackSDKReady = () => { - // Musik und Quiz werden erst nach quizifyReady() gestartet! const token = '{{ access_token }}'; const player = new Spotify.Player({ name: 'Musik Quiz Player', @@ -279,13 +276,9 @@ window.onload = function() { } document.getElementById('startPosition').value = getOption('startPosition', 'start'); - // Popup anzeigen, wenn keine Spielernamen gesetzt sind - if (!localStorage.getItem('quizify_multiplayer_names') && document.getElementById('multiplayerPopup')) { + // Popup immer anzeigen, weil LocalStorage oben geleert wurde + if (document.getElementById('multiplayerPopup')) { document.getElementById('multiplayerPopup').style.display = 'flex'; - } else { - // Wenn Namen schon gesetzt, direkt Quiz starten - updateMultiplayerUI(); - quizifyReady(); } };