mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
added missing injection point
This commit is contained in:
@@ -8,7 +8,7 @@ module.directive('favicon', function() {
|
||||
},
|
||||
replace : true,
|
||||
template : '<img ng-src="{{iconUrl()}}" class="favicon" onError="this.src=\'images/default_favicon.gif\'"></img>',
|
||||
controller : function($scope) {
|
||||
controller : ['$scope', function($scope) {
|
||||
$scope.iconUrl = function() {
|
||||
var url = $scope.url;
|
||||
|
||||
@@ -25,7 +25,7 @@ module.directive('favicon', function() {
|
||||
iconUrl += '?defaulticon=none';
|
||||
return iconUrl;
|
||||
};
|
||||
}
|
||||
}]
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user