Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Tushurashvili committed Nov 5, 2020
1 parent eaad17e commit 8d28b5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ios/Classes/InAppWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1877,10 +1877,15 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
public func webView(_ webView: WKWebView,
decidePolicyFor navigationAction: WKNavigationAction,
decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
guard let options = options else {
decisionHandler(.allow)
print("Failed to process shouldOverrideUrlLoading. options is nil")
return
}

if let url = navigationAction.request.url {

if activateShouldOverrideUrlLoading && (options?.useShouldOverrideUrlLoading)! {
if activateShouldOverrideUrlLoading && options.useShouldOverrideUrlLoading {

let isForMainFrame = navigationAction.targetFrame?.isMainFrame ?? false

Expand Down

0 comments on commit 8d28b5b

Please sign in to comment.