瀏覽代碼

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

Ben Wildeman 4 年之前
父節點
當前提交
adb5608116
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      ios/RNCWebView.m

+ 1
- 1
ios/RNCWebView.m 查看文件

@@ -962,7 +962,7 @@ static NSDictionary* customCertificatesForHost;
962 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 966
       // Error code 102 "Frame load interrupted" is raised by the WKWebView
967 967
       // when the URL is from an http redirect. This is a common pattern when
968 968
       // implementing OAuth with a WebView.