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 () => {
|
||||
if (isMobile()) {
|
||||
document.documentElement.requestFullscreen &&
|
||||
(await document.documentElement.requestFullscreen({
|
||||
navigationUI: "hide",
|
||||
}));
|
||||
await screen.orientation.lock("landscape");
|
||||
}
|
||||
document.documentElement.requestFullscreen &&
|
||||
(await document.documentElement.requestFullscreen({
|
||||
navigationUI: "hide",
|
||||
}));
|
||||
await screen.orientation.lock("landscape");
|
||||
});
|
||||
|
||||
initJuego();
|
||||
|
|
Loading…
Reference in a new issue