docs: Update notifications (renderer) docs (#29267)
* remove version information from html * change format for readability * clarify which console the message should appear in * minor changes to renderer.md * update UI on click instead of developer console * remove node-integration and fix md * update content * chore: remove **** Co-authored-by: Ethan Arrowood <ethan.arrowood@gmail.com> Co-authored-by: Cheng Zhao <github@zcbenz.com>
This commit is contained in:
parent
dd98fa3cd3
commit
fc10b53f95
4 changed files with 17 additions and 27 deletions
|
@ -1,7 +1,6 @@
|
|||
const myNotification = new Notification('Title', {
|
||||
body: 'Notification from the Renderer process'
|
||||
})
|
||||
const NOTIFICATION_TITLE = 'Title'
|
||||
const NOTIFICATION_BODY = 'Notification from the Renderer process. Click to log to console.'
|
||||
const CLICK_MESSAGE = 'Notification clicked!'
|
||||
|
||||
myNotification.onclick = () => {
|
||||
console.log('Notification clicked')
|
||||
}
|
||||
new Notification(NOTIFICATION_TITLE, { body: NOTIFICATION_BODY })
|
||||
.onclick = () => document.getElementById("output").innerText = CLICK_MESSAGE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue