From 3c30a167c09f82b6d237d8c66480079e5700a244 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Thu, 30 May 2019 22:35:37 -0600 Subject: [PATCH] add comment for util/full-screen.js --- src/ui/util/full-screen.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ui/util/full-screen.js b/src/ui/util/full-screen.js index abd23ba50..f08ce5820 100644 --- a/src/ui/util/full-screen.js +++ b/src/ui/util/full-screen.js @@ -1,9 +1,14 @@ +/* + Polyfill functions for the HTML5 fullscreen api: + https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API +*/ + const prefixes = { - fullscreenElement: ['fullscreenElement', 'msFullscreenElement', 'mozFullScreenElement', 'webkitFullscreenElement'], - fullscreenEnabled: ['fullscreenEnabled', 'msFullscreenEnabled', 'mozFullScreenEnabled', 'webkitFullscreenEnabled'], - requestFullscreen: ['requestFullscreen', 'msRequestFullscreen', 'mozRequestFullScreen', 'webkitRequestFullscreen'], exitFullscreen: ['exitFullscreen', 'msExitFullscreen', 'mozCancelFullScreen', 'webkitExitFullscreen'], fullscreenChange: ['fullscreenChange', 'MSFullscreenChange', 'mozfullscreenchange', 'webkitfullscreenchange'], + fullscreenEnabled: ['fullscreenEnabled', 'msFullscreenEnabled', 'mozFullScreenEnabled', 'webkitFullscreenEnabled'], + fullscreenElement: ['fullscreenElement', 'msFullscreenElement', 'mozFullScreenElement', 'webkitFullscreenElement'], + requestFullscreen: ['requestFullscreen', 'msRequestFullscreen', 'mozRequestFullScreen', 'webkitRequestFullscreen'], }; const getPrefix = () => {