We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae329bc commit 388e3f6Copy full SHA for 388e3f6
src/ios/CDVWKInAppBrowser.m
@@ -573,9 +573,9 @@ - (void)webView:(WKWebView *)theWebView decidePolicyForNavigationAction:(WKNavig
573
}
574
575
if(shouldStart){
576
- // Fix GH-417: Handle non-default target attribute
577
- // Based on https://stackoverflow.com/a/25853806/777265
578
- 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){
579
[theWebView loadRequest:navigationAction.request];
580
decisionHandler(WKNavigationActionPolicyCancel);
581
}else{
0 commit comments