fix(iOS WKWebView): fixed local html files loading on real devices (#403)
This commit is contained in:
parent
8deacdbbe8
commit
9c9b7d721a
|
@ -294,7 +294,13 @@ static NSURLCredential* clientAuthenticationCredential;
|
|||
[_webView loadHTMLString:@"" baseURL:nil];
|
||||
return;
|
||||
}
|
||||
if (request.URL.host) {
|
||||
[_webView loadRequest:request];
|
||||
}
|
||||
else {
|
||||
[_webView loadFileURL:request.URL allowingReadAccessToURL:request.URL];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-(void)setHideKeyboardAccessoryView:(BOOL)hideKeyboardAccessoryView
|
||||
|
|
Loading…
Reference in New Issue