mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
fix(iOS WKWebView): fixed local html files loading on real devices (#403)
This commit is contained in:
committed by
Thibault Malbranche
parent
8deacdbbe8
commit
9c9b7d721a
+7
-1
@@ -294,7 +294,13 @@ static NSURLCredential* clientAuthenticationCredential;
|
||||
[_webView loadHTMLString:@"" baseURL:nil];
|
||||
return;
|
||||
}
|
||||
[_webView loadRequest:request];
|
||||
if (request.URL.host) {
|
||||
[_webView loadRequest:request];
|
||||
}
|
||||
else {
|
||||
[_webView loadFileURL:request.URL allowingReadAccessToURL:request.URL];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-(void)setHideKeyboardAccessoryView:(BOOL)hideKeyboardAccessoryView
|
||||
|
||||
Reference in New Issue
Block a user