chore: deprecate setHighlightMode (#19202)
This commit is contained in:
parent
06d48514c6
commit
1f70dfbffd
3 changed files with 17 additions and 0 deletions
|
@ -1,8 +1,12 @@
|
|||
'use strict'
|
||||
|
||||
const { EventEmitter } = require('events')
|
||||
const { deprecate } = require('electron')
|
||||
const { Tray } = process.electronBinding('tray')
|
||||
|
||||
Object.setPrototypeOf(Tray.prototype, EventEmitter.prototype)
|
||||
|
||||
// Deprecations
|
||||
Tray.prototype.setHighlightMode = deprecate.removeFunction(Tray.prototype.setHighlightMode, 'setHighlightMode')
|
||||
|
||||
module.exports = Tray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue