asarfuckery/electronasar/canary/browser/api/notification.js

7 lines
279 B
JavaScript
Raw Normal View History

2019-08-13 18:47:11 +00:00
'use strict';
const { EventEmitter } = require('events');
const { Notification, isSupported } = process.electronBinding('notification');
Object.setPrototypeOf(Notification.prototype, EventEmitter.prototype);
Notification.isSupported = isSupported;
module.exports = Notification;