tderzhey
This commit is contained in:
parent
9e1e786cdb
commit
38636f045e
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user