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