Skip to content

Commit

Permalink
Open links with target="_blank" in the browser
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed May 21, 2024
1 parent 2b65f38 commit 8b7f9c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NextcloudTalk/AuthenticationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,13 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
decisionHandler(WKNavigationActionPolicyCancel);
return;
}


if (navigationAction.targetFrame == nil) {
[NCUtils openLinkInBrowserWithLink:url.absoluteString];
decisionHandler(WKNavigationActionPolicyCancel);
return;
}

decisionHandler(WKNavigationActionPolicyAllow);
}

Expand Down

0 comments on commit 8b7f9c8

Please sign in to comment.