Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit afbd1c8

Browse files
committed
fix injector for minified source
1 parent cf4cf84 commit afbd1c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angular-http-auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ angular.module('http-auth-interceptor', [])
5151
* $http interceptor.
5252
* On 401 response - it stores the request and broadcasts 'event:angular-auth-loginRequired'.
5353
*/
54-
.config(function($httpProvider, authServiceProvider) {
54+
.config(['$httpProvider', 'authServiceProvider', function($httpProvider, authServiceProvider) {
5555

5656
var interceptor = ['$rootScope', '$q', function($rootScope, $q) {
5757
function success(response) {
@@ -75,4 +75,4 @@ angular.module('http-auth-interceptor', [])
7575

7676
}];
7777
$httpProvider.responseInterceptors.push(interceptor);
78-
});
78+
}]);

0 commit comments

Comments
 (0)