win: Make sure shell.showItemInFolder in called on browser side.

Fixes #341.
This commit is contained in:
Cheng Zhao 2014-05-21 22:31:44 +08:00
parent dc907f501c
commit 55640a3ff7
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,5 @@
module.exports =
if process.platform is 'linux'
if process.platform is 'linux' and process.__atom_type is 'renderer'
# On Linux we could not access clipboard in renderer process.
require('remote').process.atomBinding 'clipboard'
else

View file

@ -1 +1,4 @@
module.exports = process.atomBinding 'shell'
if process.platform is 'win32' and process.__atom_type is 'renderer'
module.exports.showItemInFolder = require('remote').process.atomBinding('shell').showItemInFolder