refresh notifications every minute
no reason to bombard the server, it's not like this is realtime
This commit is contained in:
@@ -77,7 +77,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
if (error) console.error(error);
|
||||
else $scope.notifications = results;
|
||||
|
||||
$timeout(refreshNotifications, 10000);
|
||||
$timeout(refreshNotifications, 60 * 1000);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user