[ios][CB-4147] Fixing crash when calling open() on an already open window.

This commit is contained in:
Michal Mocny 2013-07-10 15:33:34 -04:00
parent a9f129248f
commit 5110dbd0d5

View File

@ -150,6 +150,8 @@
- (void)show:(CDVInvokedUrlCommand*)command
{
if ([self.inAppBrowserViewController isViewLoaded] && self.inAppBrowserViewController.view.window)
return;
[self.viewController presentModalViewController:self.inAppBrowserViewController animated:YES];
}