mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-01-12 22:44:10 +08:00
win: screen module is now browser only.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
module.exports =
|
||||
if process.platform is 'linux' and process.type is 'renderer'
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user