+ if('Notification' in window && NETDATA.alarms.current != null) {
+ if(Object.keys(NETDATA.alarms.current.alarms).length < Object.keys(data.alarms).length) {
+ if (Notification.permission === 'granted') {
+ new Notification('Netdata Alarm!', {body: 'Your Server needs attention!',
+ icon: 'images/seo-performance-128.png'});
+ }
+ }
+ }
+