Does not open links with target="_blank" in safari

This commit is contained in:
Georgie Mathews 2018-05-10 15:00:24 -07:00 committed by Andrey
parent 846acf6708
commit a2e327c1e4
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
if (isJSNavigation) {
decisionHandler(WKNavigationActionPolicyCancel);
}
else if (navigationAction.targetFrame && ([scheme isEqualToString:@"http"] || [scheme isEqualToString:@"https"])) {
else if ([scheme isEqualToString:@"http"] || [scheme isEqualToString:@"https"]) {
decisionHandler(WKNavigationActionPolicyAllow);
}
else {