This commit is contained in:
Andrey Blinov
2019-11-20 13:50:21 +07:00
parent 0aba0866f8
commit 343deb78f5
2 changed files with 12 additions and 10 deletions

View File

@@ -43,7 +43,9 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
let config = WKWebViewConfiguration()
config.userContentController = contentController
config.preferences = preferences
self.chatView = WKWebView(frame: (self.parent?.view.bounds)!, configuration: config)
self.chatView.navigationDelegate = self
self.view = self.chatView