mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: deprecate setHighlightMode (#19202)
This commit is contained in:
committed by
Shelley Vohr
parent
06d48514c6
commit
1f70dfbffd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user