mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-14 16:53:52 +00:00
update
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
Pod::Spec.new do |spec|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'OnlineChatSdk'
|
s.name = 'OnlineChatSdk'
|
||||||
s.version = '0.0.2'
|
s.version = '0.0.2'
|
||||||
s.summary = 'A small library containing a wrapper for the WKWebView.'
|
s.summary = 'A small library containing a wrapper for the WKWebView.'
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> ()) {
|
public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> ()) {
|
||||||
if let host = navigationAction.request.url?.host {
|
if let _ = navigationAction.request.url?.host {
|
||||||
if navigationAction.request.url?.absoluteString == self.widgetUrl {
|
if navigationAction.request.url?.absoluteString == self.widgetUrl {
|
||||||
decisionHandler(.allow)
|
decisionHandler(.allow)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user