This commit is contained in:
Cay 2026-03-17 15:42:34 +00:00
parent 7ae22ae98d
commit acdc2b3298

View File

@ -40,7 +40,13 @@ function initArenaModes() {
card.addEventListener("click", () => {
const mode = card.dataset.mode;
if (mode === "1v1") {
const tab = window.open("/arena/1v1", "_blank");
const width = window.screen.width;
const height = window.screen.height;
const tab = window.open(
"/arena/1v1",
"_blank",
`width=${width},height=${height},left=0,top=0`,
);
tab?.focus();
} else {
console.log("Arena Modus gewählt:", mode);