mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various Improvements
This commit is contained in:
@@ -43,7 +43,7 @@ final class GenericEmbedImplementation: WebEmbedImplementation {
|
||||
self.onPlaybackStarted = onPlaybackStarted
|
||||
updateStatus(self.status)
|
||||
|
||||
if self.url.contains("player.twitch.tv/"), let url = URL(string: self.url) {
|
||||
if self.url.contains(".twitch.tv/"), let url = URL(string: self.url) {
|
||||
webView.load(URLRequest(url: url))
|
||||
} else {
|
||||
let html = String(format: htmlTemplate, self.url)
|
||||
|
||||
Reference in New Issue
Block a user