fixed remote messages
This commit is contained in:
@@ -122,6 +122,10 @@ var WebNotifications = {
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
supported: function() {
|
||||
return window.Notification || window.webkitNotifications;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -840,7 +840,7 @@ var Dashboard = {
|
||||
|
||||
var cmd = msg.Data;
|
||||
|
||||
if (cmd.TimeoutMs) {
|
||||
if (cmd.TimeoutMs && WebNotifications.supported()) {
|
||||
var notification = {
|
||||
title: cmd.Header,
|
||||
body: cmd.Text,
|
||||
|
||||
Reference in New Issue
Block a user