Add PowerSaveBlocker APIs.
This commit is contained in:
parent
a1cbd11b5b
commit
7c5afdd388
5 changed files with 152 additions and 0 deletions
8
atom/browser/api/lib/power-save-blocker.coffee
Normal file
8
atom/browser/api/lib/power-save-blocker.coffee
Normal file
|
@ -0,0 +1,8 @@
|
|||
bindings = process.atomBinding 'power_save_blocker'
|
||||
|
||||
powerSaveBlocker = bindings.powerSaveBlocker
|
||||
|
||||
powerSaveBlocker.PREVENT_APP_SUSPENSION = 0
|
||||
powerSaveBlocker.PREVENT_DISPLAY_SLEEP = 1
|
||||
|
||||
module.exports = powerSaveBlocker
|
Loading…
Add table
Add a link
Reference in a new issue