(iOS) Fix iframes in iOS/WKWebView which were broken by #418. Fixes #424. (#425)

This commit is contained in:
Dave Alden 2019-02-11 23:14:18 +00:00 committed by Jan Piotrowski
parent ae329bc4c2
commit 388e3f6ae7

View File

@ -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{