spm support

This commit is contained in:
KonstantinHub
2024-09-09 18:31:31 +03:00
parent ee17e08843
commit e03858df19
2 changed files with 27 additions and 1 deletions

View File

@@ -463,7 +463,9 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
}
open func onLinkPressed(url: URL) {
UIApplication.shared.openURL(url)
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url)
}
}
open func playSound(_ systemSoundId: SystemSoundID) {