electron/lib/browser/api/tray.js

13 lines
363 B
JavaScript
Raw Normal View History

'use strict'
2018-09-13 16:10:51 +00:00
const { EventEmitter } = require('events')
const { deprecate } = require('electron')
const { Tray } = process.electronBinding('tray')
2016-01-12 02:40:23 +00:00
Object.setPrototypeOf(Tray.prototype, EventEmitter.prototype)
2016-01-12 02:40:23 +00:00
// Deprecations
Tray.prototype.setHighlightMode = deprecate.removeFunction(Tray.prototype.setHighlightMode, 'setHighlightMode')
module.exports = Tray