Skip to content

Commit 3fd0b29

Browse files
committed
https://github.com/McNull/angular-block-ui/issues/53
1 parent e9bb8ba commit 3fd0b29

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/angular-block-ui/interceptor.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@ blkUI.factory('blockUIHttpInterceptor', function($q, $injector, blockUIConfig, $
5555
requestError: error,
5656

5757
response: function(response) {
58-
stopBlockUI(response.config);
58+
59+
// If the connection to the website goes down the response interceptor gets and error with "cannot read property config of null".
60+
// https://github.com/McNull/angular-block-ui/issues/53
61+
62+
if(response) {
63+
stopBlockUI(response.config);
64+
}
65+
5966
return response;
6067
},
6168

0 commit comments

Comments
 (0)