Exits fullscreen mode if the document is currently in fullscreen.
This function uses the standard exitFullscreen() API when available,
and falls back to vendor-prefixed exit methods for Safari, IE11, and Firefox.
Does nothing when the document is not in fullscreen (avoids a rejected exitFullscreen() promise).
Any errors from the standard promise-based exit request are caught
and logged using logger.logPromiseFailed.
Exits fullscreen mode if the document is currently in fullscreen.
This function uses the standard
exitFullscreen()API when available, and falls back to vendor-prefixed exit methods for Safari, IE11, and Firefox. Does nothing when the document is not in fullscreen (avoids a rejectedexitFullscreen()promise). Any errors from the standard promise-based exit request are caught and logged usinglogger.logPromiseFailed.