]> arthur.barton.de Git - netdata.git/commitdiff
Merge remote-tracking branch 'lucadev/master'
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 4 Sep 2016 16:53:44 +0000 (19:53 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 4 Sep 2016 16:53:44 +0000 (19:53 +0300)
1  2 
web/dashboard.js

index 6159d8ccefd683ce2544baf0d5b926734bef8ab8,849ea6d392fe2406c82cd3453850bb6f86b530eb..1dc57a1ac58a66dbe7efd63bd52a56011a4f429d
          },
  
          init: function() {
 +            var host = NETDATA.serverDefault;
 +            while(host.slice(-1) === '/')
 +                host = host.substring(0, host.length - 1);
 +            NETDATA.alarms.server = host;
 +            
              NETDATA.alarms.update_forever();
+             if ('Notification' in window && Notification.permission === 'default') {
+                 Notification.requestPermission();
+             }
          }
      };