From aa2358aa0347df97eeea96bc2cb6e1224aebf5ad Mon Sep 17 00:00:00 2001 From: kevgliss Date: Sun, 27 Dec 2015 18:02:38 -0500 Subject: [PATCH] Fixing linting --- lemur/static/app/angular/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lemur/static/app/angular/app.js b/lemur/static/app/angular/app.js index b8a0302d..0c34d846 100644 --- a/lemur/static/app/angular/app.js +++ b/lemur/static/app/angular/app.js @@ -20,7 +20,6 @@ 'ngFileSaver' ]); - fetchData().then(bootstrapApplication); function fetchData() { var initInjector = angular.injector(['ng']); @@ -29,16 +28,18 @@ return $http.get('http://localhost:8000/api/1/auth/providers').then(function(response) { lemur.constant('providers', response.data); }, function(errorResponse) { - // Handle error case + console.log('Could not fetch SSO providers') }); } function bootstrapApplication() { angular.element(document).ready(function() { - angular.bootstrap(document, ["lemur"]); + angular.bootstrap(document, ['lemur']); }); } + fetchData().then(bootstrapApplication); + lemur.config(function ($stateProvider, $urlRouterProvider, $authProvider, providers) { $urlRouterProvider.otherwise('/welcome'); $stateProvider