mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
committed by
John Kleinschmidt
parent
cfb6e847a0
commit
02710ef574
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user