mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Fix regression that prevented universal links from working
This commit is contained in:
parent
3390ff403f
commit
56bbfe713b
@ -351,8 +351,13 @@ extension WebViewController: WKNavigationDelegate {
|
||||
if AppDefaults.shared.useSystemBrowser {
|
||||
UIApplication.shared.open(url, options: [:])
|
||||
} else {
|
||||
let vc = SFSafariViewController(url: url)
|
||||
self.present(vc, animated: true, completion: nil)
|
||||
UIApplication.shared.open(url, options: [.universalLinksOnly: true]) { didOpen in
|
||||
guard didOpen == false else {
|
||||
return
|
||||
}
|
||||
let vc = SFSafariViewController(url: url)
|
||||
self.present(vc, animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
} else if components?.scheme == "mailto" {
|
||||
|
Loading…
Reference in New Issue
Block a user