mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
19 lines
391 B
Swift
19 lines
391 B
Swift
//
|
|
// Created by Adam Stragner
|
|
//
|
|
|
|
import Foundation
|
|
|
|
internal extension URL {
|
|
var isTON: Bool {
|
|
if #available(iOS 13.0, *) {
|
|
return !TonutilsProxy.SupportedDomain
|
|
.allCases
|
|
.map({ ".\($0)" })
|
|
.filter({ (host ?? "").hasSuffix($0) })
|
|
.isEmpty
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
}
|