From 5f66862843d6154477d6a6d3903c235c0cfa05bf Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Tue, 1 Feb 2022 10:33:08 +0100 Subject: [PATCH] Request landscape orientation --- game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/game.js b/game.js index 5f2c9de..1dea91b 100644 --- a/game.js +++ b/game.js @@ -276,6 +276,7 @@ document.getElementById("start").onclick = () => { set_head_gn(); try { document.body.requestFullscreen(); + window.screen.orientation.lock.call(window.screen.orientation, 'landscape'); } catch (e) { // browser doesn't support this API, try another hack window.scrollTo(0,1);