electron/spec/fixtures/pages/permissions/notification.html
2016-10-31 08:54:56 -07:00

10 lines
317 B
HTML

<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()
require('electron').ipcRenderer.sendToHost('message', result)
})
</script>