macOS implementation of notifications in the main process
This commit is contained in:
parent
37ed44cf1c
commit
5dd4d6a961
9 changed files with 351 additions and 1 deletions
|
@ -11,6 +11,7 @@ module.exports = [
|
|||
{name: 'Menu', file: 'menu'},
|
||||
{name: 'MenuItem', file: 'menu-item'},
|
||||
{name: 'net', file: 'net'},
|
||||
{name: 'Notification', file: 'notification'},
|
||||
{name: 'powerMonitor', file: 'power-monitor'},
|
||||
{name: 'powerSaveBlocker', file: 'power-save-blocker'},
|
||||
{name: 'protocol', file: 'protocol'},
|
||||
|
|
6
lib/browser/api/notification.js
Normal file
6
lib/browser/api/notification.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
const {EventEmitter} = require('events')
|
||||
const {Notification} = process.atomBinding('notification')
|
||||
|
||||
Object.setPrototypeOf(Notification.prototype, EventEmitter.prototype)
|
||||
|
||||
module.exports = Notification
|
Loading…
Add table
Add a link
Reference in a new issue