Fix crash on Twitter link #102

This commit is contained in:
Thomas Ricouard 2023-01-23 13:54:41 +01:00
parent 5fe928bd22
commit 5c7cc5803f

View file

@ -49,7 +49,7 @@ public class Client: ObservableObject, Equatable {
} }
public func hasConnection(with url: URL) -> Bool { public func hasConnection(with url: URL) -> Bool {
guard let host = url.host(percentEncoded: false) else { return false } guard let host = url.host else { return false }
return connections.contains(host) return connections.contains(host)
} }