Skip to content

Commit 5c1eab8

Browse files
authored
Merge pull request #517 from funnel20/WebViewController
Allow loading of files in IASKAppSettingsWebViewController
2 parents 4113481 + 1a01781 commit 5c1eab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
333333
return;
334334
}
335335

336-
// Allow loading of any http(s) requests:
337-
if ([newURL.scheme isEqualToString:@"http"] || [newURL.scheme isEqualToString:@"https"]) {
336+
// Allow loading of any http(s) and file requests:
337+
if ([@[@"http", @"https", @"file"] containsObject:newURL.scheme]) {
338338
decisionHandler(WKNavigationActionPolicyAllow);
339339
return;
340340
}

0 commit comments

Comments
 (0)