diff options
Diffstat (limited to 'CyteKit')
-rw-r--r-- | CyteKit/WebViewController.mm | 6 |
1 files changed, 5 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 { |