This commit is contained in:
Cay 2026-03-18 11:56:37 +00:00
parent 9e1e786cdb
commit 38636f045e

View File

@ -297,17 +297,14 @@
} }
}); });
socket.on("match_cancelled", (data) => { socket.on("match_cancelled", () => {
const lock = document.getElementById("board-lock-overlay"); // Popup im Parent-Fenster schließen (Spielfeld läuft im iframe)
if (lock) { if (window.parent && window.parent !== window) {
lock.innerHTML = ` window.parent.document.getElementById("arena-backdrop")?.remove();
<div id="ready-timer-box"> window.parent.document.getElementById("arena-popup")?.remove();
<div id="ready-timer-label" style="color:#e74c3c;">⏰ Zeit abgelaufen</div> } else {
<div id="ready-timer-sub">${data.message || "Match abgebrochen."}</div> window.close();
</div>
`;
} }
// Aufgabe-Logik kommt hier rein
}); });
function handleAufgeben() { function handleAufgeben() {