File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,17 @@ - (void)webView:(WKWebView *)webView
151151 }
152152}
153153
154+ - (void )webView : (WKWebView *)webView didFailProvisionalNavigation : (WKNavigation *)navigation withError : (NSError *)error {
155+ if (webView != _webView) { return ; }
156+
157+ _base.numRequestsLoading --;
158+
159+ __strong typeof (_webViewDelegate) strongDelegate = _webViewDelegate;
160+ if (strongDelegate && [strongDelegate respondsToSelector: @selector (webView:didFailProvisionalNavigation:withError: )]) {
161+ [strongDelegate webView: webView didFailProvisionalNavigation: navigation withError: error];
162+ }
163+ }
164+
154165- (NSString *) _evaluateJavascript : (NSString *)javascriptCommand
155166{
156167 [_webView evaluateJavaScript: javascriptCommand completionHandler: nil ];
You can’t perform that action at this time.
0 commit comments