mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
Remove trailing slash when adding a relay
Changelog-Fixed: Remove trailing slash when adding a relay Closes: #562
This commit is contained in:
parent
062b5dc040
commit
1f6657e471
@ -48,6 +48,10 @@ struct RelayConfigView: View {
|
||||
relay = "wss://" + relay
|
||||
}
|
||||
|
||||
if relay.hasSuffix("/") {
|
||||
relay.removeLast();
|
||||
}
|
||||
|
||||
guard let url = URL(string: relay) else {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user