From: Cheng Zhao Date: Fri, 11 Jul 2014 11:06:46 +0000 (+0800) Subject: win: screen module is now browser only. X-Git-Tag: v0.14.0~1^2~31 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=43e8ecb118d7ef62caf39309c63f3fbdd2ac8cb8;p=electron.git win: screen module is now browser only. --- diff --git a/atom/common/api/lib/screen.coffee b/atom/common/api/lib/screen.coffee index d0714b83..da7701e5 100644 --- a/atom/common/api/lib/screen.coffee +++ b/atom/common/api/lib/screen.coffee @@ -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