Open room on notification click.

This commit is contained in:
2018-12-13 14:06:15 -08:00
parent 46352c429a
commit 2c7b72fba6
5 changed files with 14 additions and 6 deletions

View File

@@ -9,9 +9,8 @@ function setupNotificationPorts(app) {
}
var n = new Notification(data.name, options)
n.onclick = function() {
app.ports.onNotificationClickPort.send({
"room" : data.room
});
app.ports.onNotificationClickPort.send(data.room);
n.close();
}
})
}