mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Youtube player fixes
This commit is contained in:
@@ -174,8 +174,8 @@ final class YoutubeEmbedImplementation: WebEmbedImplementation {
|
||||
updateStatus(self.status)
|
||||
|
||||
let html = String(format: htmlTemplate, paramsJson)
|
||||
webView.loadHTMLString(html, baseURL: URL(string: "https://youtube.com/"))
|
||||
webView.isUserInteractionEnabled = false
|
||||
webView.loadHTMLString(html, baseURL: URL(string: "https://messenger.telegram.org"))
|
||||
// webView.isUserInteractionEnabled = false
|
||||
|
||||
userContentController.addUserScript(WKUserScript(source: userScript, injectionTime: .atDocumentEnd, forMainFrameOnly: false))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user