From 1dbf88f88898fe35cda1b939da600ae2f8e00ef6 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Thu, 1 Mar 2018 20:16:53 +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 e21e95f..2c86d03 100644 --- a/src/core/gui.coffee +++ b/src/core/gui.coffee @@ -189,7 +189,7 @@ self.OS.GUI = event.preventDefault() initDM: -> - ($ "body").on 'webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange', ()-> + ($ document).on 'webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange', ()-> _GUI.fullscreen = not _GUI.fullscreen # check login first _API.resource "schemes/dm.html", (x) ->