ghk
This commit is contained in:
parent
0f14dce958
commit
7d445fefd8
@ -107,9 +107,13 @@ document.querySelectorAll(".qm-popup").forEach((popup) => {
|
||||
================================ */
|
||||
|
||||
function isBoosterSpinning() {
|
||||
// Prüft direkt am DOM ob der Slot gerade dreht – kein globaler Flag nötig
|
||||
// Nur sperren wenn das Events-Popup gerade offen UND der Slot dreht
|
||||
const eventsPopup = document.getElementById("qm-popup-events");
|
||||
if (!eventsPopup || !eventsPopup.classList.contains("active")) return false;
|
||||
|
||||
const ui = document.getElementById("booster-ui");
|
||||
if (!ui || ui.style.display === "none") return false;
|
||||
|
||||
return !!ui.querySelector(".booster-slot.spinning");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user