fix: deprecate properties in app.getAppMetrics() (#13446)
* fix: deprecate properties in app.getAppMetrics() * address feedback from review * fix deprecated property location * simplify test
This commit is contained in:
parent
08ccc2d624
commit
f9e2ec43d0
4 changed files with 47 additions and 6 deletions
|
@ -58,6 +58,13 @@ Object.assign(app, {
|
|||
}
|
||||
})
|
||||
|
||||
const nativeFn = app.getAppMetrics
|
||||
app.getAppMetrics = () => {
|
||||
deprecate.removeProperty(nativeFn, 'privateBytes')
|
||||
deprecate.removeProperty(nativeFn, 'sharedBytes')
|
||||
return nativeFn.call(app)
|
||||
}
|
||||
|
||||
app.isPackaged = (() => {
|
||||
const execFile = path.basename(process.execPath).toLowerCase()
|
||||
if (process.platform === 'win32') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue