diff --git a/dev/Common/Globals.js b/dev/Common/Globals.js index 1e1a81860..e7283858a 100644 --- a/dev/Common/Globals.js +++ b/dev/Common/Globals.js @@ -11,7 +11,7 @@ export const elementById = id => doc.getElementById(id), - exitFullscreen = () => getFullscreenElement() && (doc.exitFullscreen || doc.webkitExitFullscreen)(), + exitFullscreen = () => getFullscreenElement() && (doc.exitFullscreen || doc.webkitExitFullscreen).call(doc), getFullscreenElement = () => doc.fullscreenElement || doc.webkitFullscreenElement, Settings = rl.settings,