2021-06-06 21:02:20 -07:00
|
|
|
const NOTIFICATION_TITLE = 'Title'
|
|
|
|
const NOTIFICATION_BODY = 'Notification from the Renderer process. Click to log to console.'
|
|
|
|
const CLICK_MESSAGE = 'Notification clicked!'
|
2020-11-30 09:48:39 +02:00
|
|
|
|
2021-06-06 21:02:20 -07:00
|
|
|
new Notification(NOTIFICATION_TITLE, { body: NOTIFICATION_BODY })
|
2023-04-05 06:42:20 -07:00
|
|
|
.onclick = () => document.getElementById('output').innerText = CLICK_MESSAGE
|