diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m index 7deb6d0..6364f4f 100644 --- a/src/ios/CDVWKInAppBrowser.m +++ b/src/ios/CDVWKInAppBrowser.m @@ -573,9 +573,9 @@ static CDVWKInAppBrowser* instance = nil; } if(shouldStart){ - // Fix GH-417: Handle non-default target attribute - // Based on https://stackoverflow.com/a/25853806/777265 - if (!navigationAction.targetFrame.isMainFrame){ + // Fix GH-417 & GH-424: Handle non-default target attribute + // Based on https://stackoverflow.com/a/25713070/777265 + if (!navigationAction.targetFrame){ [theWebView loadRequest:navigationAction.request]; decisionHandler(WKNavigationActionPolicyCancel); }else{