Web app improvements

This commit is contained in:
Ilya Laktyushin
2023-12-06 00:31:49 +04:00
parent 0f4d4b4503
commit 07967d9d63
2 changed files with 19 additions and 4 deletions

View File

@@ -312,7 +312,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
self.backgroundColor = self.presentationData.theme.list.plainBackgroundColor
}
let webView = WebAppWebView()
let webView = WebAppWebView(account: context.account)
webView.alpha = 0.0
webView.navigationDelegate = self
webView.uiDelegate = self
@@ -418,8 +418,6 @@ public final class WebAppController: ViewController, AttachmentContainable {
}
})
})
self.setupWebView()
}
deinit {
@@ -434,6 +432,8 @@ public final class WebAppController: ViewController, AttachmentContainable {
override func didLoad() {
super.didLoad()
self.setupWebView()
guard let webView = self.webView else {
return
}