mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-15 00:54:05 +00:00
update
This commit is contained in:
@@ -73,8 +73,8 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
||||
return
|
||||
}
|
||||
}
|
||||
UIApplication.shared.openURL(navigationAction.request.url!)
|
||||
decisionHandler(.cancel)
|
||||
self.onLinkPressed(url: navigationAction.request.url!)
|
||||
}
|
||||
|
||||
private func getCallJsMethod(_ name: String, params: Array<Any>) -> String {
|
||||
@@ -228,6 +228,10 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
||||
}
|
||||
onEvent(name, data!)
|
||||
}
|
||||
|
||||
open func onLinkPressed(url: URL) {
|
||||
UIApplication.shared.openURL(url)
|
||||
}
|
||||
|
||||
open func playSound(_ systemSoundId: SystemSoundID) {
|
||||
AudioServicesPlaySystemSound(systemSoundId)
|
||||
|
||||
Reference in New Issue
Block a user