electron/atom/common/api/lib/screen.coffee
2014-07-11 19:06:46 +08:00

6 lines
234 B
CoffeeScript

module.exports =
if process.platform in ['linux', 'win32'] and process.type is 'renderer'
# On Linux we could not access screen in renderer process.
require('remote').require 'screen'
else
process.atomBinding 'screen'