Merge pull request #2128 from alfredxing/body-fullscreen-class

Add `fullscreen` class to body when in full screen
This commit is contained in:
Corey Johnson 2014-05-09 11:36:39 -07:00
commit 14a430b939

View File

@ -473,6 +473,7 @@ class Atom extends Model
# Public: Set the full screen state of the current window.
setFullScreen: (fullScreen=false) ->
ipc.send('call-window-method', 'setFullScreen', fullScreen)
if fullScreen then document.body.classList.add("fullscreen") else document.body.classList.remove("fullscreen")
# Public: Is the current window in full screen mode?
isFullScreen: ->