From a515b96a4685f26215791931172d25e2b66900bd Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Tue, 9 Jan 2018 20:06:19 +0100 Subject: [PATCH] fix(app): fix a Javascript error related to missing $state parameter (#1562) --- app/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.js b/app/app.js index 1d798a4ea..37d24cb1e 100644 --- a/app/app.js +++ b/app/app.js @@ -7,7 +7,7 @@ angular.module('portainer') StateManager.initialize() .then(function success(state) { if (state.application.authentication) { - initAuthentication(authManager, Authentication, $rootScope); + initAuthentication(authManager, Authentication, $rootScope, $state); } if (state.application.analytics) { initAnalytics(Analytics, $rootScope); @@ -30,7 +30,7 @@ angular.module('portainer') }]); -function initAuthentication(authManager, Authentication, $rootScope) { +function initAuthentication(authManager, Authentication, $rootScope, $state) { authManager.checkAuthOnRefresh(); authManager.redirectWhenUnauthenticated(); Authentication.init();