This commit is contained in:
Robo 2015-12-21 17:50:40 +05:30
parent ff51e4033a
commit cc7040d75f
2 changed files with 9 additions and 1 deletions

View file

@ -122,7 +122,7 @@ Object.defineProperty window.history, 'length',
Object.defineProperty document, 'hidden',
get: ->
currentWindow = remote.getCurrentWindow()
!currentWindow.isFocused() || !currentWindow.isVisible()
currentWindow.isMinimized() || !currentWindow.isVisible()
Object.defineProperty document, 'visibilityState',
get: ->