mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
PiP and UI improvements
This commit is contained in:
@@ -47,8 +47,12 @@ struct Instance: Defaults.Serializable, Hashable, Identifiable {
|
||||
URLComponents(string: apiURL)!
|
||||
}
|
||||
|
||||
var frontendHost: String {
|
||||
URLComponents(string: frontendURL!)!.host!
|
||||
var frontendHost: String? {
|
||||
guard let url = app == .invidious ? apiURL : frontendURL else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return URLComponents(string: url)?.host
|
||||
}
|
||||
|
||||
func hash(into hasher: inout Hasher) {
|
||||
|
Reference in New Issue
Block a user