Skip to content

Commit

Permalink
Added 'file' scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
devedbox committed Jan 9, 2017
1 parent a9a8581 commit 98ceb65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AXWebViewController.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "AXWebViewController"
s.version = "0.4.0"
s.version = "0.4.1"
s.summary = "A light weight web view controller in iOS."

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -83,7 +83,7 @@ s.platform = :ios, "7.0"
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/devedbox/AXWebViewController.git", :tag => "0.4.0" }
s.source = { :git => "https://github.com/devedbox/AXWebViewController.git", :tag => "0.4.1" }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
}
decisionHandler(WKNavigationActionPolicyCancel);
return;
} else if (![[NSPredicate predicateWithFormat:@"SELF MATCHES[cd] 'https' OR SELF MATCHES[cd] 'http'"] evaluateWithObject:components.scheme]) {// For any other schema.
} else if (![[NSPredicate predicateWithFormat:@"SELF MATCHES[cd] 'https' OR SELF MATCHES[cd] 'http' OR SELF MATCHES[cd] 'file'"] evaluateWithObject:components.scheme]) {// For any other schema.
if ([[UIApplication sharedApplication] canOpenURL:webView.URL]) {
[[UIApplication sharedApplication] openURL:webView.URL];
}
Expand Down

0 comments on commit 98ceb65

Please sign in to comment.