]> khamidou — GitHub mirrors - electron.git/commitdiff
win: screen module is now browser only.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 11 Jul 2014 11:06:46 +0000 (19:06 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 11 Jul 2014 11:06:46 +0000 (19:06 +0800)
atom/common/api/lib/screen.coffee

index d0714b8357a8a1fe1a007f741e9c4095fe310b63..da7701e55a4e003e8447ee08c61b872659f3b15f 100644 (file)
@@ -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