summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/WebViewController.mm6
-rw-r--r--iPhonePrivate.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index c6033bc..e6f7e45 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -286,7 +286,11 @@ float CYScrollViewDecelerationRateNormal;
}
- (void) _openMailToURL:(NSURL *)url {
- [[UIApplication sharedApplication] openURL:url];// asPanel:YES];
+ UIApplication *app([UIApplication sharedApplication]);
+ if ([app respondsToSelector:@selector(openURL:asPanel:)])
+ [app openURL:url asPanel:YES];
+ else
+ [app openURL:url];
}
- (bool) _allowJavaScriptPanel {
diff --git a/iPhonePrivate.h b/iPhonePrivate.h
index ea0fe34..fdcb147 100644
--- a/iPhonePrivate.h
+++ b/iPhonePrivate.h
@@ -200,6 +200,7 @@ typedef enum {
- (void) applicationWillResignActive:(UIApplication *)application;
- (void) applicationWillSuspend;
- (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended;
+- (void) openURL:(NSURL *)url asPanel:(BOOL)panel;
- (void) setStatusBarShowsProgress:(BOOL)shows;
- (void) _setSuspended:(BOOL)suspended;
- (void) terminateWithSuccess;