show unread count in title before title

This commit is contained in:
Athou
2013-04-09 00:28:45 +02:00
parent 513785db8c
commit f86c919700

View File

@@ -118,7 +118,7 @@ module.controller('CategoryTreeCtrl', function($scope, $timeout, $stateParams,
$scope.$watch(rootUnreadCount, function(value) {
var label = 'CommaFeed';
if (value > 0) {
label += ' (' + value + ')';
label = '(' + value + ') ' + label;
}
$window.document.title = label;
});