No discriminar a usuarixs en dispositivos no mobile
This commit is contained in:
parent
d4f8f8a674
commit
bb61cb2b1c
1 changed files with 5 additions and 7 deletions
12
src/main.ts
12
src/main.ts
|
@ -223,13 +223,11 @@ async function initJuego() {
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("full-screen")!.addEventListener("click", async () => {
|
document.getElementById("full-screen")!.addEventListener("click", async () => {
|
||||||
if (isMobile()) {
|
document.documentElement.requestFullscreen &&
|
||||||
document.documentElement.requestFullscreen &&
|
(await document.documentElement.requestFullscreen({
|
||||||
(await document.documentElement.requestFullscreen({
|
navigationUI: "hide",
|
||||||
navigationUI: "hide",
|
}));
|
||||||
}));
|
await screen.orientation.lock("landscape");
|
||||||
await screen.orientation.lock("landscape");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
initJuego();
|
initJuego();
|
||||||
|
|
Loading…
Reference in a new issue