2016-10-28 17:34:11 +00:00
|
|
|
<script>
|
|
|
|
var n1 = new Notification('Electron Notification.requestPermission test 1')
|
|
|
|
var n2 = new Notification('Electron Notification.requestPermission test 2')
|
|
|
|
Notification.requestPermission().then((result) => {
|
|
|
|
n1.close()
|
|
|
|
n2.close()
|
|
|
|
|
2019-09-03 17:10:58 +00:00
|
|
|
require('electron').ipcRenderer.send('message', result)
|
2016-10-28 17:34:11 +00:00
|
|
|
})
|
|
|
|
</script>
|