summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-06 12:14:06 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-15 14:39:11 -0800
commitf97db6307650edae08342fab15057a471388afed (patch)
treea7681a762d8d495e957363316196779939ed1ca0 /UICaboodle
parent851f4a995d285e0b4b8713f8e70133c95226ba71 (diff)
Use the same pattern for willSendRequest:'s delegate as other ones.
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 2c45468..88dc7a4 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -318,9 +318,8 @@ static void $UIWebViewWebViewDelegate$webView$didReceiveTitle$forFrame$(UIWebVie
static NSURLRequest *$UIWebViewWebViewDelegate$webView$resource$willSendRequest$redirectResponse$fromDataSource$(UIWebViewWebViewDelegate *self, SEL sel, WebView *view, id identifier, NSURLRequest *request, NSURLResponse *response, WebDataSource *source) {
UIWebView *uiWebView(MSHookIvar<UIWebView *>(self, "uiWebView"));
if ([uiWebView respondsToSelector:@selector(webView:resource:willSendRequest:redirectResponse:fromDataSource:)])
- return [uiWebView webView:view resource:identifier willSendRequest:request redirectResponse:response fromDataSource:source];
- else
- return request;
+ request = [uiWebView webView:view resource:identifier willSendRequest:request redirectResponse:response fromDataSource:source];
+ return request;
}
- (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source {