parent
83c5e749f0
commit
3f63aaee58
@ -262,11 +262,8 @@
|
|||||||
|
|
||||||
- (void)openInSystem:(NSURL*)url
|
- (void)openInSystem:(NSURL*)url
|
||||||
{
|
{
|
||||||
if ([[UIApplication sharedApplication] canOpenURL:url]) {
|
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
|
||||||
[[UIApplication sharedApplication] openURL:url];
|
[[UIApplication sharedApplication] openURL:url];
|
||||||
} else { // handle any custom schemes to plugins
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is a helper method for the inject{Script|Style}{Code|File} API calls, which
|
// This is a helper method for the inject{Script|Style}{Code|File} API calls, which
|
||||||
|
Loading…
Reference in New Issue
Block a user