From 7a6eb90e1d2ca75e7bdbab38325e0e21f5331e04 Mon Sep 17 00:00:00 2001 From: Athou Date: Sun, 19 May 2013 10:50:34 +0200 Subject: [PATCH] injections cleanup --- src/main/webapp/js/controllers.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index ac810a5d..dd90b6d4 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -936,10 +936,8 @@ function($scope, $location, $state, AdminSettingsService) { }; }]); -module.controller('FooterController', [ '$scope', '$location', '$state', - 'AdminSettingsService', -function($scope, $location, $state, AdminSettingsService) { - +module.controller('FooterController', [ '$scope', function($scope) { + var baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf('#')); var hostname = window.location.hostname; $scope.subToMeUrl = baseUrl + 'rest/feed/subscribe?url={feed}';