diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index b8724cb..bbdc497 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -150,7 +150,9 @@ - (void)show:(CDVInvokedUrlCommand*)command { - [self.viewController presentModalViewController:self.inAppBrowserViewController animated:YES]; + if ([self.inAppBrowserViewController isViewLoaded] && self.inAppBrowserViewController.view.window) + return; + [self.viewController presentModalViewController:self.inAppBrowserViewController animated:YES]; } - (void)openInCordovaWebView:(NSURL*)url withOptions:(NSString*)options