mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
8 lines
177 B
JavaScript
8 lines
177 B
JavaScript
const myNotification = new Notification('Title', {
|
|
body: 'Notification from the Renderer process'
|
|
})
|
|
|
|
myNotification.onclick = () => {
|
|
console.log('Notification clicked')
|
|
}
|