Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-01-29 17:36:07 +03:00
parent 92c06c45b2
commit e67b193c73
10 changed files with 4066 additions and 4007 deletions

View File

@@ -174,7 +174,7 @@ final class YoutubeEmbedImplementation: WebEmbedImplementation {
updateStatus(self.status)
let html = String(format: htmlTemplate, paramsJson)
webView.loadHTMLString(html, baseURL: URL(string: "https://messenger.telegram.org"))
webView.loadHTMLString(html, baseURL: URL(string: "https://telegram.youtube.com"))
// webView.isUserInteractionEnabled = false
userContentController.addUserScript(WKUserScript(source: userScript, injectionTime: .atDocumentEnd, forMainFrameOnly: false))