mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Move process-stats methods to process
This commit is contained in:
@@ -21,12 +21,6 @@ exports.defineProperties = function (exports) {
|
||||
return require('../native-image')
|
||||
}
|
||||
},
|
||||
processStats: {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return require('../process-stats')
|
||||
}
|
||||
},
|
||||
shell: {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = process.atomBinding('process_stats')
|
||||
@@ -46,3 +46,5 @@ if (process.type === 'browser') {
|
||||
if (process.platform === 'win32' && __dirname.indexOf('\\Program Files\\WindowsApps\\') === 2) {
|
||||
process.windowsStore = true
|
||||
}
|
||||
|
||||
Object.assign(Object.getPrototypeOf(process), process.atomBinding('process_stats'))
|
||||
|
||||
Reference in New Issue
Block a user