Skip to content

Commit

Permalink
Merge pull request #37 from dismory/patch-1
Browse files Browse the repository at this point in the history
Update NJKWebViewProgress.m
  • Loading branch information
ninjinkun committed Jan 6, 2015
2 parents 80c104d + e7ffe8f commit c46096e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NJKWebViewProgress/NJKWebViewProgress.m
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error

BOOL isNotRedirect = _currentURL && [_currentURL isEqual:webView.request.mainDocumentURL];
BOOL complete = [readyState isEqualToString:@"complete"];
if (complete && isNotRedirect) {
if ((complete && isNotRedirect) || error) {
[self completeProgress];
}
}
Expand Down

0 comments on commit c46096e

Please sign in to comment.