improvemed ability to display the html5 notifications for commits

This commit is contained in:
Brad Rydzewski
2014-06-22 03:02:22 -07:00
parent e8abb11c19
commit c6b880c272
5 changed files with 71 additions and 14 deletions

View File

@@ -2,8 +2,11 @@
angular.module('app').controller("HomeController", function($scope, $http, feed, notify) {
feed.subscribe(function(message) {
notify.send(message.repo.name);
feed.subscribe(function(item) {
notify.sendCommit(
item.repo,
item.commit
);
});
$http({method: 'GET', url: '/v1/user/feed'}).