Remove trailing slash when adding a relay
Changelog-Fixed: Remove trailing slash when adding a relay Closes: #562
This commit is contained in:
committed by
William Casarin
parent
062b5dc040
commit
1f6657e471
@@ -48,6 +48,10 @@ struct RelayConfigView: View {
|
|||||||
relay = "wss://" + relay
|
relay = "wss://" + relay
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if relay.hasSuffix("/") {
|
||||||
|
relay.removeLast();
|
||||||
|
}
|
||||||
|
|
||||||
guard let url = URL(string: relay) else {
|
guard let url = URL(string: relay) else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user