mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-13 08:46:40 +08:00
7 lines
234 B
CoffeeScript
7 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'
|