Rename process.__atom_type to process.type.
This commit is contained in:
parent
70c96eeac6
commit
9721c4e761
7 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
module.exports =
|
||||
if process.platform is 'linux' and process.__atom_type is 'renderer'
|
||||
if process.platform is 'linux' and process.type is 'renderer'
|
||||
# On Linux we could not access clipboard in renderer process.
|
||||
require('remote').process.atomBinding 'clipboard'
|
||||
else
|
||||
|
|
|
@ -15,7 +15,7 @@ class CrashReporter
|
|||
extra._productName ?= productName
|
||||
extra._companyName ?= companyName
|
||||
extra._version ?=
|
||||
if process.__atom_type is 'browser'
|
||||
if process.type is 'browser'
|
||||
require('app').getVersion()
|
||||
else
|
||||
require('remote').require('app').getVersion()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = process.atomBinding 'shell'
|
||||
|
||||
if process.platform is 'win32' and process.__atom_type is 'renderer'
|
||||
if process.platform is 'win32' and process.type is 'renderer'
|
||||
module.exports.showItemInFolder = require('remote').process.atomBinding('shell').showItemInFolder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue