[ios][CB-4147] Fixing crash when calling open() on an already open window.
This commit is contained in:
parent
a9f129248f
commit
5110dbd0d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user