mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-02-02 10:54:15 -05:00
added relative urls to use_websocket
This commit is contained in:
parent
66cdfab719
commit
cbb23c6c4d
1 changed files with 0 additions and 2 deletions
|
@ -439,8 +439,6 @@ fn normalize_url(url: &str) -> String {
|
|||
} else {
|
||||
if url.starts_with("ws://") || url.starts_with("wss://") {
|
||||
url.to_string()
|
||||
} else if url.starts_with("http://") || url.starts_with("https://") {
|
||||
url.replacen("http", "ws", 1)
|
||||
} else if url.starts_with("//") {
|
||||
format!("{}{}", detect_protocol(), url)
|
||||
} else if url.starts_with('/') {
|
||||
|
|
Loading…
Add table
Reference in a new issue