From 43e8ecb118d7ef62caf39309c63f3fbdd2ac8cb8 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 11 Jul 2014 19:06:46 +0800 Subject: [PATCH] win: screen module is now browser only. --- atom/common/api/lib/screen.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/common/api/lib/screen.coffee b/atom/common/api/lib/screen.coffee index d0714b8357a8..da7701e55a4e 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