Fix linting errors and add isSupported
This commit is contained in:
parent
686b1388b1
commit
3938373ecb
6 changed files with 21 additions and 6 deletions
|
@ -1,6 +1,8 @@
|
|||
const {EventEmitter} = require('events')
|
||||
const {Notification} = process.atomBinding('notification')
|
||||
const {Notification, isSupported} = process.atomBinding('notification')
|
||||
|
||||
Object.setPrototypeOf(Notification.prototype, EventEmitter.prototype)
|
||||
|
||||
Notification.isSupported = isSupported
|
||||
|
||||
module.exports = Notification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue