refactor: ginify Tray (#22822)

* refactor: ginify Tray

* lint

* improve argument parsing logic

* remove redundant imports from tray.js

* new Tray produces an instanceof Tray

* make Constructible generic

* lint

* clean up on exit
This commit is contained in:
Jeremy Apthorp
2020-03-29 18:32:02 -07:00
committed by GitHub
parent 76ae3b7ecb
commit a3e28788ce
16 changed files with 380 additions and 88 deletions

View File

@@ -1,9 +1,5 @@
'use strict';
const { EventEmitter } = require('events');
const { deprecate } = require('electron');
const { Tray } = process.electronBinding('tray');
Object.setPrototypeOf(Tray.prototype, EventEmitter.prototype);
module.exports = Tray;