summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/WebView.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm
index 0e8ba71..7fac96e 100644
--- a/CyteKit/WebView.mm
+++ b/CyteKit/WebView.mm
@@ -171,7 +171,8 @@ static void $UIWebViewWebViewDelegate$webView$addMessageToConsole$(UIWebViewWebV
[delegate webView:view decidePolicyForNavigationAction:action request:request frame:frame decisionListener:mediator];
if (![mediator decided] && [UIWebView instancesRespondToSelector:@selector(webView:decidePolicyForNavigationAction:request:frame:decisionListener:)])
[super webView:view decidePolicyForNavigationAction:action request:request frame:frame decisionListener:mediator];
- [delegate webView:view didDecidePolicy:[mediator decision] forNavigationAction:action request:request frame:frame];
+ if ([delegate respondsToSelector:@selector(webView:didDecidePolicy:forNavigationAction:request:frame:)])
+ [delegate webView:view didDecidePolicy:[mediator decision] forNavigationAction:action request:request frame:frame];
[mediator decide];
}
// }}}