Skip to content

Commit 388e3f6

Browse files
dpa99cjanpio
authored andcommitted
(iOS) Fix iframes in iOS/WKWebView which were broken by #418. Fixes #424. (#425)
1 parent ae329bc commit 388e3f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ios/CDVWKInAppBrowser.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ - (void)webView:(WKWebView *)theWebView decidePolicyForNavigationAction:(WKNavig
573573
}
574574

575575
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){
576+
// Fix GH-417 & GH-424: Handle non-default target attribute
577+
// Based on https://stackoverflow.com/a/25713070/777265
578+
if (!navigationAction.targetFrame){
579579
[theWebView loadRequest:navigationAction.request];
580580
decisionHandler(WKNavigationActionPolicyCancel);
581581
}else{

0 commit comments

Comments
 (0)