mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 18:06:39 +02:00
Merge branch 'main' of https://github.com/vitorpamplona/amethyst
This commit is contained in:
@@ -36,7 +36,7 @@ fun NormalizedRelayUrl.toHttp() =
|
|||||||
if (url.startsWith("wss://")) {
|
if (url.startsWith("wss://")) {
|
||||||
"https${url.drop(3)}"
|
"https${url.drop(3)}"
|
||||||
} else if (url.startsWith("ws://")) {
|
} else if (url.startsWith("ws://")) {
|
||||||
"https${url.drop(2)}"
|
"http${url.drop(2)}"
|
||||||
} else {
|
} else {
|
||||||
"https://$url"
|
"https://$url"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user