0

In Firefox 56.x , window.fullscreen says if the browser is in fullscreen state or not. How to detect the same in Chrome?

Note: Assume the fullscreen is triggered by F11 || Cmd + Shift + Enter and not programmatically via any of document methods.

dolftax
  • 1,209
  • 3
  • 12
  • 21

1 Answers1

1

A decent workaround might be to see if screen.width === window.outerWidth && screen.height === window.outerHeight.

AKX
  • 152,115
  • 15
  • 115
  • 172