зеркало из https://github.com/electron/electron.git
win: screen module is now browser only.
This commit is contained in:
Родитель
ea60a04280
Коммит
43e8ecb118
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче