summaryrefslogtreecommitdiff
path: root/CyteKit/WebView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit/WebView.mm')
-rw-r--r--CyteKit/WebView.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm
index 09c9c40..1706cc0 100644
--- a/CyteKit/WebView.mm
+++ b/CyteKit/WebView.mm
@@ -377,6 +377,11 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
[frame setNeedsLayout];
}
+- (NSURLRequest *) request {
+ WebFrame *frame([[[self _documentView] webView] mainFrame]);
+ return [([frame provisionalDataSource] ?: [frame dataSource]) request];
+}
+
@end
static void $UIWebViewWebViewDelegate$_clearUIWebView(UIWebViewWebViewDelegate *self, SEL sel) {