Fixing linting

This commit is contained in:
kevgliss 2015-12-27 18:02:38 -05:00
parent a7decc1948
commit aa2358aa03
1 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,6 @@
'ngFileSaver' 'ngFileSaver'
]); ]);
fetchData().then(bootstrapApplication);
function fetchData() { function fetchData() {
var initInjector = angular.injector(['ng']); var initInjector = angular.injector(['ng']);
@ -29,16 +28,18 @@
return $http.get('http://localhost:8000/api/1/auth/providers').then(function(response) { return $http.get('http://localhost:8000/api/1/auth/providers').then(function(response) {
lemur.constant('providers', response.data); lemur.constant('providers', response.data);
}, function(errorResponse) { }, function(errorResponse) {
// Handle error case console.log('Could not fetch SSO providers')
}); });
} }
function bootstrapApplication() { function bootstrapApplication() {
angular.element(document).ready(function() { angular.element(document).ready(function() {
angular.bootstrap(document, ["lemur"]); angular.bootstrap(document, ['lemur']);
}); });
} }
fetchData().then(bootstrapApplication);
lemur.config(function ($stateProvider, $urlRouterProvider, $authProvider, providers) { lemur.config(function ($stateProvider, $urlRouterProvider, $authProvider, providers) {
$urlRouterProvider.otherwise('/welcome'); $urlRouterProvider.otherwise('/welcome');
$stateProvider $stateProvider