diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index 8a6b8f9a..ea4766fe 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -8,7 +8,7 @@ module.directive('favicon', function() { }, replace : true, template : '', - 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; }; - } + }] }; });