1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00
We disable HTML 5 notification is there isn't browser support (IE for example)
We need a portable library later.
This commit is contained in:
Ner'zhul 2014-12-22 10:58:39 +01:00
parent 0cc56794fd
commit d87e245236

View File

@ -303,6 +303,10 @@ function fetchInitialPeerList(jsondata) {
}
function initDesktopNotifies() {
if (!("Notification" in window)) {
return;
}
Notification.requestPermission(function (permission) {
if(!('permission' in Notification)) {
Notification.permission = permission;