Skip to content

Commit

Permalink
Merge pull request proyecto26#160 from ssuchanowski/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnichollsc authored Jun 24, 2020
2 parents 5c91be4 + 93cdecd commit 7fdc864
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ios/RNInAppBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,11 @@ - (BOOL)initializeWebBrowserWithResolver:(RCTPromiseResolveBlock)resolve andReje
*/
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller
{
redirectResolve(@{
@"type": @"cancel",
});
if (redirectResolve) {
redirectResolve(@{
@"type": @"cancel",
});
}
[self flowDidFinish];
if (!animated) {
[self dismissWithoutAnimation:controller];
Expand Down

0 comments on commit 7fdc864

Please sign in to comment.