Merge branch 'master' of https://github.com/uareurapid/cordova-plugin-inappbrowser
This commit is contained in:
commit
1f190d517f
@ -390,7 +390,14 @@
|
||||
[self.commandDelegate sendPluginResult:pluginResult callbackId:scriptCallbackId];
|
||||
return NO;
|
||||
}
|
||||
} else if ((self.callbackId != nil) && isTopLevelNavigation) {
|
||||
}
|
||||
//if is an app store link, let the system handle it, otherwise it fails to load it
|
||||
else if ([[ url scheme] isEqualToString:@"itms-appss"] || [[ url scheme] isEqualToString:@"itms-apps"]) {
|
||||
[theWebView stopLoading];
|
||||
[self openInSystem:url];
|
||||
return NO;
|
||||
}
|
||||
else if ((self.callbackId != nil) && isTopLevelNavigation) {
|
||||
// Send a loadstart event for each top-level navigation (includes redirects).
|
||||
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
|
||||
messageAsDictionary:@{@"type":@"loadstart", @"url":[url absoluteString]}];
|
||||
|
Loading…
Reference in New Issue
Block a user