I have a website that has a lot of games including Flash. Im using Ruffle Emulator to emulate those games. I have a fullscreen button thats supposed to go in Fullscreen but its not.
I have tried to use this code but it does not work
// Get the Ruffle player element
const ruffle = window.RufflePlayer.newest();
if (ruffle.fullscreenEnabled) {
ruffle.enterFullscreen();
alert("Press ESC to exit fullscreen.");
} else {
alert("Fullscreen is not supported.");
}
If you could help me I would appreaciate it!
Thanks in advance!