Reply To: Safari Compatibility

PennController for IBEX Forums Support Safari Compatibility Reply To: Safari Compatibility

#5616
Jeremy
Keymaster

Hi Nickolas,

You can try replacing the fullscreen() command with this:

newFunction( ()=> {
  if (document.documentElement.requestFullscreen)
    document.documentElement.requestFullscreen();
  else if (document.documentElement.mozRequestFullScreen) /* Firefox */
    document.documentElement.mozRequestFullScreen();
  else if (document.documentElement.webkitRequestFullscreen) /* Chrome, Safari and Opera */
    document.documentElement.webkitRequestFullscreen();
  else if (document.documentElement.msRequestFullscreen) /* IE/Edge */
    document.documentElement.msRequestFullscreen();
})
.call()

Jeremy