fix(ios): Allow loading local html files (#693)

This commit is contained in:
Dani Palou 2020-05-17 00:24:36 +02:00 committed by GitHub
parent 8aaae5b3f7
commit dcfe692ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1083,8 +1083,12 @@ BOOL isExiting = FALSE;
- (void)navigateTo:(NSURL*)url
{
if ([url.scheme isEqualToString:@"file"]) {
[self.webView loadFileURL:url allowingReadAccessToURL:url];
} else {
NSURLRequest* request = [NSURLRequest requestWithURL:url];
[self.webView loadRequest:request];
}
}
- (void)goBack:(id)sender