Update CDVWKInAppBrowserUIDelegate.m

This commit is contained in:
ShrivallabhDeshmukh 2020-04-24 10:42:11 +05:30
parent 96b3b679f2
commit 82e7e4a308

View File

@ -79,7 +79,7 @@
[[self getViewController] presentViewController:alert animated:YES completion:nil];
}
//added this code to open popup window within frame.
//open popup window within same frame.
- (WKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures
{
if (!navigationAction.targetFrame.isMainFrame) {