12 lines
363 B
JavaScript
12 lines
363 B
JavaScript
'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
|