Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Returning delegate value on webView:shouldStartLoadWithRequest:naviga…
…tionType:
  • Loading branch information
Sebastian Waisbrot committed Feb 12, 2012
commit 420d4611390c45f56ab951fae141a0f6ab219846
2 changes: 1 addition & 1 deletion WebViewJavascriptBridge/WebViewJavascriptBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down