How to open the game in full screen in the web version? Tried pasting the code but it doesn't work:
Has anyone encountered the same problem ??
function openFullscreen() {
var elem = document.documentElement;
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.mozRequestFullScreen) { /* Firefox */
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE/Edge */
elem.msRequestFullscreen();
}
}
if (document && document.documentElement) {
openFullscreen();
}Has anyone encountered the same problem ??