chore: more modules to dual prop/fn support (#22688)
This commit is contained in:
parent
01d5154f4f
commit
674e4a9fdd
10 changed files with 91 additions and 68 deletions
|
@ -1,8 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const { deprecate } = require('electron')
|
||||
const { NativeImage, nativeImage } = process.electronBinding('native_image')
|
||||
|
||||
deprecate.fnToProperty(NativeImage.prototype, 'isMacTemplateImage', '_isTemplateImage', '_setTemplateImage')
|
||||
const { nativeImage } = process.electronBinding('native_image')
|
||||
|
||||
module.exports = nativeImage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue