electron/lib/common/api/native-image.js
Shelley Vohr 02710ef574 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>
2019-05-07 06:52:07 -07:00

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