From 6636cf9afaac2fe0cc01a5b7d5797bb7f1f29e14 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Thu, 1 Mar 2018 20:12:07 +0100 Subject: [PATCH] fix fullscreen --- src/core/gui.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gui.coffee b/src/core/gui.coffee index 57c3172..e21e95f 100644 --- a/src/core/gui.coffee +++ b/src/core/gui.coffee @@ -163,7 +163,7 @@ self.OS.GUI = return document.exitFullscreen() if document.exitFullscreen return document.mozCancelFullScreen() if document.mozCancelFullScreen return document.webkitExitFullscreen() if document.webkitExitFullscreen - return document.exitFullscreen() if document.exitFullscreen + return document.cancelFullScreen() if document.cancelFullScreen else return el.requestFullscreen() if el.requestFullscreen return el.mozRequestFullScreen() if el.mozRequestFullScreen