full screen in the web version

How to open the game in full screen in the web version? Tried pasting the code but it doesn't work:

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 ??
F11
Very funny )) 😉
Very funny )) 😉
Sorry 🙂


Edit the index.html

As explained on the page, you can use it as an element / container. Or simply the whole page as full screen.
Window.enterFullscreen();

https://docs.nwjs.io/en/latest/References/Window/#winenterfullscreen

Original thread: https://forums.rpgmakerweb.com/threads/full-screen-in-the-web-version.134368/