[GH-652] add check for openInSystem postNotification (#654)
Co-authored-by: Jim Wright <jim.wright@masabi.com>
This commit is contained in:
parent
7a856bec60
commit
11ba4c4e7e
@ -357,8 +357,10 @@ static CDVWKInAppBrowser* instance = nil;
|
|||||||
|
|
||||||
- (void)openInSystem:(NSURL*)url
|
- (void)openInSystem:(NSURL*)url
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
|
if ([[UIApplication sharedApplication] openURL:url] == NO) {
|
||||||
[[UIApplication sharedApplication] openURL:url];
|
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
|
||||||
|
[[UIApplication sharedApplication] openURL:url];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)loadAfterBeforeload:(CDVInvokedUrlCommand*)command
|
- (void)loadAfterBeforeload:(CDVInvokedUrlCommand*)command
|
||||||
|
Loading…
Reference in New Issue
Block a user