Browse Source

fix(iOS): Ignore WebKitDomainError 101 (#961)

Ben Wildeman 5 years ago
parent
commit
adb5608116
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/RNCWebView.m

+ 1
- 1
ios/RNCWebView.m View File

962
       return;
962
       return;
963
     }
963
     }
964
 
964
 
965
-    if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102) {
965
+    if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102 || [error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 101) {
966
       // Error code 102 "Frame load interrupted" is raised by the WKWebView
966
       // Error code 102 "Frame load interrupted" is raised by the WKWebView
967
       // when the URL is from an http redirect. This is a common pattern when
967
       // when the URL is from an http redirect. This is a common pattern when
968
       // implementing OAuth with a WebView.
968
       // implementing OAuth with a WebView.