summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-06-24 10:09:30 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-06-24 10:09:30 -0700
commit92de61aabba908e254b8d4f1498798043fdabbe7 (patch)
treedc4b65d814403a8fc24e9e84a38018b5047cb45d /CyteKit/WebViewController.mm
parent202bf8406ce550a612cce583115dc6e1f07bb031 (diff)
Now on iOS 8.3, webView: can be webThreadWebView:.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 33524f3..a7ff586 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -711,6 +711,14 @@ float CYScrollViewDecelerationRateNormal;
return request;
}
+- (NSURLRequest *) webThreadWebView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source {
+#if LogBrowser
+ NSLog(@"resource:%@ willSendRequest:%@ redirectResponse:%@ fromDataSource:%@", identifier, request, response, source);
+#endif
+
+ return request;
+}
+
- (bool) webView:(WebView *)view shouldRunJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame {
return [self _allowJavaScriptPanel];
}