mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-04 04:55:06 +03:00
Merge pull request #2128 from alfredxing/body-fullscreen-class
Add `fullscreen` class to body when in full screen
This commit is contained in:
commit
14a430b939
@ -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: ->
|
||||
|
Loading…
Reference in New Issue
Block a user