mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
chore: remove only on deprecations api spec (#14564)
* chore: remove only * add option to ignore missing properties
This commit is contained in:
@@ -44,7 +44,7 @@ const nativeFn = app.getAppMetrics
|
||||
app.getAppMetrics = () => {
|
||||
let metrics = nativeFn.call(app)
|
||||
for (const metric of metrics) {
|
||||
deprecate.removeProperty(metric, 'memory')
|
||||
deprecate.removeProperty(metric, 'memory', true)
|
||||
}
|
||||
|
||||
return metrics
|
||||
|
||||
Reference in New Issue
Block a user