Skip to content

Commit

Permalink
return after decisionHandler called to avoid call it more than once (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
wrlqwe authored and marcuswestin committed Nov 8, 2017
1 parent 4a6f596 commit ea4b343
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WebViewJavascriptBridge/WKWebViewJavascriptBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
[_base logUnkownMessage:url];
}
decisionHandler(WKNavigationActionPolicyCancel);
return;
}

if (strongDelegate && [strongDelegate respondsToSelector:@selector(webView:decidePolicyForNavigationAction:decisionHandler:)]) {
Expand Down

0 comments on commit ea4b343

Please sign in to comment.