mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-14 16:53:52 +00:00
0.0.7
This commit is contained in:
@@ -163,7 +163,7 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
||||
|
||||
public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> ()) {
|
||||
if let _ = navigationAction.request.url?.host {
|
||||
if navigationAction.request.url?.absoluteString == self.widgetUrl {
|
||||
if (navigationAction.request.url?.absoluteString.contains(self.widgetUrl))! {
|
||||
decisionHandler(.allow)
|
||||
return
|
||||
}
|
||||
@@ -330,7 +330,6 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
||||
onEvent(name, data!)
|
||||
}
|
||||
|
||||
|
||||
open func onLinkPressed(url: URL) {
|
||||
UIApplication.shared.openURL(url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user