electron/lib/browser/api/notification.js

11 lines
283 B
JavaScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
'use strict';
2020-03-20 20:28:31 +00:00
const { EventEmitter } = require('events');
const { Notification, isSupported } = process.electronBinding('notification');
2020-03-20 20:28:31 +00:00
Object.setPrototypeOf(Notification.prototype, EventEmitter.prototype);
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;