|
@@ -40,18 +40,6 @@ Object.assign(app, {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const nativeFn = app.getAppMetrics
|
|
|
-app.getAppMetrics = () => {
|
|
|
- const metrics = nativeFn.call(app)
|
|
|
- for (const metric of metrics) {
|
|
|
- if ('memory' in metric) {
|
|
|
- deprecate.removeProperty(metric, 'memory')
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return metrics
|
|
|
-}
|
|
|
-
|
|
|
app.isPackaged = (() => {
|
|
|
const execFile = path.basename(process.execPath).toLowerCase()
|
|
|
if (process.platform === 'win32') {
|