This commit is contained in:
Andrey Blinov
2019-11-20 01:44:49 +07:00
parent a5f2dcfcd5
commit 0aba0866f8

View File

@@ -47,6 +47,7 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
self.chatView = WKWebView(frame: (self.parent?.view.bounds)!, configuration: config) self.chatView = WKWebView(frame: (self.parent?.view.bounds)!, configuration: config)
self.chatView.navigationDelegate = self self.chatView.navigationDelegate = self
self.view = self.chatView self.view = self.chatView
} }
public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {