Skip to content

Commit

Permalink
fix webview policy
Browse files Browse the repository at this point in the history
  • Loading branch information
dequanzhu committed Aug 21, 2019
1 parent d9be0df commit 78d7c58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion HybridPageKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "HybridPageKit"
s.version = "1.2"
s.version = "1.3"
s.summary = "A high-performance、high-extensibility、easy integration framework for Hybrid content page. Support most content page types of News App."
s.homepage = "https://github.com/dequan1331/HybridPageKit"
s.license = "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
decisionHandler(WKNavigationActionPolicyCancel);
return;
}
if (navigationAction.navigationType == WKNavigationTypeLinkActivated) {
decisionHandler(WKNavigationActionPolicyCancel);
return;
}

if ([self.originalDelegate respondsToSelector:@selector(webViewDecidePolicyForNavigationAction:decisionHandler:)]) {
[self.originalDelegate webViewDecidePolicyForNavigationAction:navigationAction decisionHandler:decisionHandler];
Expand Down

0 comments on commit 78d7c58

Please sign in to comment.