Skip to content

Commit 32d867f

Browse files
committed
CB-12586 (iOS) fix method hide doesn't work
This closes #229
1 parent 6e05862 commit 32d867f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ios/CDVInAppBrowser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ - (void)hide:(CDVInvokedUrlCommand*)command
270270
dispatch_async(dispatch_get_main_queue(), ^{
271271
if (self.inAppBrowserViewController != nil) {
272272
_previousStatusBarStyle = -1;
273-
[self.viewController dismissViewControllerAnimated:YES completion:nil];
273+
[self.inAppBrowserViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil];
274274
}
275275
});
276276
}

0 commit comments

Comments
 (0)