Merge pull request #3215 from atom/fix-remote-call
Fix calling showItemInFolder in renderer
This commit is contained in:
commit
65ece4b1ca
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue