Skip to content
Permalink
Browse files
fix(ios): Allow loading local html files (#693)
  • Loading branch information
dpalou committed May 16, 2020
1 parent 8aaae5b commit dcfe692ccd821210a668a3fe0356237c503264ed
Showing 1 changed file with 6 additions and 2 deletions.
@@ -1083,8 +1083,12 @@ - (void)close

- (void)navigateTo:(NSURL*)url
{
NSURLRequest* request = [NSURLRequest requestWithURL:url];
[self.webView loadRequest:request];
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

0 comments on commit dcfe692

Please sign in to comment.