Add a separate message for first sync, and add event listing.

This commit is contained in:
2018-12-13 01:46:57 -08:00
parent 3e7d12b6e4
commit 2505610aa2
7 changed files with 43 additions and 16 deletions

View File

@@ -7,6 +7,11 @@ function setupNotificationPorts(app) {
var options = {
"body" : data.text
}
new Notification(data.name, options)
var n = new Notification(data.name, options)
n.onclick = function() {
app.ports.onNotificationClickPort.send({
"room" : data.room
});
}
})
}