refactor: make templateImage a property on nativeImage (#18124)
* refactor: make templateImage a property on nativeImage * Update docs/api/native-image.md Co-Authored-By: codebytere <codebytere@github.com> * fix nativeImage prototype deprecation * update for new property name * Update docs/api/native-image.md Co-Authored-By: codebytere <codebytere@github.com>
This commit is contained in:
parent
cfb6e847a0
commit
02710ef574
6 changed files with 50 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
|||
'use strict'
|
||||
|
||||
const { nativeImage } = process.electronBinding('native_image')
|
||||
const { deprecate } = require('electron')
|
||||
const { NativeImage, nativeImage } = process.electronBinding('native_image')
|
||||
|
||||
deprecate.fnToProperty(NativeImage.prototype, 'isMacTemplateImage', '_isTemplateImage', '_setTemplateImage')
|
||||
|
||||
module.exports = nativeImage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue