Skip to content

Commit

Permalink
修改为用 Safari 打开 url 参数
Browse files Browse the repository at this point in the history
  • Loading branch information
Finb committed Dec 13, 2024
1 parent 89fb58c commit 6c4577e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6c4577e

Please sign in to comment.