electron/atom/browser/api/lib/power-save-blocker.coffee

9 lines
221 B
CoffeeScript
Raw Normal View History

2015-06-21 12:57:42 +00:00
bindings = process.atomBinding 'power_save_blocker'
powerSaveBlocker = bindings.powerSaveBlocker
powerSaveBlocker.PREVENT_APP_SUSPENSION = 0
powerSaveBlocker.PREVENT_DISPLAY_SLEEP = 1
module.exports = powerSaveBlocker