Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
cfb6e84
commit 02710ef
Showing
6 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.