2020-03-20 20:28:31 +00:00
|
|
|
'use strict';
|
2018-09-22 12:28:50 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
const { EventEmitter } = require('events');
|
|
|
|
const { Notification, isSupported } = process.electronBinding('notification');
|
2017-04-23 12:16:19 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
Object.setPrototypeOf(Notification.prototype, EventEmitter.prototype);
|
2017-04-23 12:16:19 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
Notification.isSupported = isSupported;
|
2017-05-30 10:27:24 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
module.exports = Notification;
|