refactor: ginify Notification (#22821)
This commit is contained in:
parent
629465aac7
commit
765c08c600
4 changed files with 68 additions and 30 deletions
|
@ -1,10 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const { EventEmitter } = require('events');
|
||||
const { Notification, isSupported } = process.electronBinding('notification');
|
||||
|
||||
Object.setPrototypeOf(Notification.prototype, EventEmitter.prototype);
|
||||
|
||||
Notification.isSupported = isSupported;
|
||||
|
||||
module.exports = Notification;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue