summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/CyteWebView.h1
-rw-r--r--CyteKit/CyteWebView.mm4
2 files changed, 5 insertions, 0 deletions
diff --git a/CyteKit/CyteWebView.h b/CyteKit/CyteWebView.h
index 7db1e11..09c66da 100644
--- a/CyteKit/CyteWebView.h
+++ b/CyteKit/CyteWebView.h
@@ -73,6 +73,7 @@
- (id<CYWebViewDelegate>) delegate;
- (void) dispatchEvent:(NSString *)event;
+- (void) reloadFromOrigin;
@end
diff --git a/CyteKit/CyteWebView.mm b/CyteKit/CyteWebView.mm
index 5c07039..c7044bc 100644
--- a/CyteKit/CyteWebView.mm
+++ b/CyteKit/CyteWebView.mm
@@ -350,6 +350,10 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
}
}
+- (void) reloadFromOrigin {
+ [[[self _documentView] webView] reloadFromOrigin:nil];
+}
+
+ (void) initialize {
if (Class $UIWebViewWebViewDelegate = objc_getClass("UIWebViewWebViewDelegate")) {
class_addMethod($UIWebViewWebViewDelegate, @selector(webView:addMessageToConsole:), (IMP) &$UIWebViewWebViewDelegate$webView$addMessageToConsole$, "v16@0:4@8@12");