Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 23e9147

Browse files
author
Mark van Rij
committed
fix: Decide policy on load error
apache#799
1 parent 10f2ad7 commit 23e9147

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ios/CDVWKInAppBrowser.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,10 @@ - (void)webView:(WKWebView*)theWebView didFailNavigation:(null_unspecified WKNav
12381238

12391239
- (void)webView:(WKWebView*)theWebView didFailProvisionalNavigation:(null_unspecified WKNavigation *)navigation withError:(nonnull NSError *)error
12401240
{
1241-
[self webView:theWebView failedNavigation:@"didFailProvisionalNavigation" withError:error];
1241+
if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102)
1242+
return;
1243+
else
1244+
[self webView:theWebView failedNavigation:@"didFailProvisionalNavigation" withError:error];
12421245
}
12431246

12441247
#pragma mark WKScriptMessageHandler delegate

0 commit comments

Comments
 (0)