02710ef574
* 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>
8 lines
273 B
JavaScript
8 lines
273 B
JavaScript
'use strict'
|
|
|
|
const { deprecate } = require('electron')
|
|
const { NativeImage, nativeImage } = process.electronBinding('native_image')
|
|
|
|
deprecate.fnToProperty(NativeImage.prototype, 'isMacTemplateImage', '_isTemplateImage', '_setTemplateImage')
|
|
|
|
module.exports = nativeImage
|