Merge pull request #3215 from atom/fix-remote-call

Fix calling showItemInFolder in renderer
This commit is contained in:
Cheng Zhao 2015-10-26 17:13:20 +08:00
commit 65ece4b1ca

View file

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