From 420d4611390c45f56ab951fae141a0f6ab219846 Mon Sep 17 00:00:00 2001 From: Sebastian Waisbrot Date: Sun, 12 Feb 2012 10:51:26 -0200 Subject: [PATCH] Returning delegate value on webView:shouldStartLoadWithRequest:navigationType: --- WebViewJavascriptBridge/WebViewJavascriptBridge.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebViewJavascriptBridge/WebViewJavascriptBridge.m b/WebViewJavascriptBridge/WebViewJavascriptBridge.m index ec6ab801..d133b122 100755 --- a/WebViewJavascriptBridge/WebViewJavascriptBridge.m +++ b/WebViewJavascriptBridge/WebViewJavascriptBridge.m @@ -139,7 +139,7 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *) NSURL *url = [request URL]; if (![[url scheme] isEqualToString:CUSTOM_PROTOCOL_SCHEME]) { if (self.delegate != nil && [self.delegate respondsToSelector:@selector(webView:shouldStartLoadWithRequest:navigationType:)]) { - [self.delegate webView:webView shouldStartLoadWithRequest:request navigationType:navigationType]; + return [self.delegate webView:webView shouldStartLoadWithRequest:request navigationType:navigationType]; } return YES; }