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