ninjinkun / NJKWebViewProgress

UIWebView progress interface
MIT License
3.89k stars 594 forks source link

bug (click a link and then go back and then click the link again, it may cause progress never complete ) #71

Open GitHubNormalUser opened 8 years ago

GitHubNormalUser commented 8 years ago

"BOOL isNotRedirect = _currentURL && [_currentURL isEqual:webView.request.mainDocumentURL]" should be "BOOL isNotRedirect = _currentURL && [_currentURL isEqual:webView.request.URL];" in "- (void)webViewDidFinishLoad:(UIWebView )webView" and "- (void)webView:(UIWebView )webView didFailLoadWithError:(NSError *)error".