Skip to content

Commit c69ff3d

Browse files
committed
Merge pull request marcuswestin#7 from seppo0010/patch-1
Returning delegate value on webView:shouldStartLoadWithRequest:navigationType:
2 parents c4dc77c + 420d461 commit c69ff3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebViewJavascriptBridge/WebViewJavascriptBridge.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
139139
NSURL *url = [request URL];
140140
if (![[url scheme] isEqualToString:CUSTOM_PROTOCOL_SCHEME]) {
141141
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(webView:shouldStartLoadWithRequest:navigationType:)]) {
142-
[self.delegate webView:webView shouldStartLoadWithRequest:request navigationType:navigationType];
142+
return [self.delegate webView:webView shouldStartLoadWithRequest:request navigationType:navigationType];
143143
}
144144
return YES;
145145
}

0 commit comments

Comments
 (0)