mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
修改为用 Safari 打开 url 参数
This commit is contained in:
parent
89fb58c700
commit
6c4577e5ea
@ -74,8 +74,8 @@ class Client: NSObject {
|
||||
if ["http", "https"].contains(url.scheme?.lowercased() ?? "") {
|
||||
UIApplication.shared.open(url, options: [UIApplication.OpenExternalURLOptionsKey.universalLinksOnly: true]) { success in
|
||||
if !success {
|
||||
// 打不开Universal Link时,则用内置 safari 打开
|
||||
self.currentSnackbarController?.present(BarkSFSafariViewController(url: url), animated: true, completion: nil)
|
||||
// 打不开Universal Link时,则用 safari 打开
|
||||
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user