mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 16:54:41 -05:00
Compare commits
2 Commits
proc-macro
...
3606
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1bc89576e | ||
|
|
5aa160dabf |
@@ -123,14 +123,20 @@ impl Url {
|
||||
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
{
|
||||
js_sys::decode_uri_component(s).unwrap().into()
|
||||
match js_sys::decode_uri_component(s) {
|
||||
Ok(v) => v.into(),
|
||||
Err(_) => s.into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn unescape_minimal(s: &str) -> String {
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
{
|
||||
js_sys::decode_uri(s).unwrap().into()
|
||||
match js_sys::decode_uri(s) {
|
||||
Ok(v) => v.into(),
|
||||
Err(_) => s.into(),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
|
||||
Reference in New Issue
Block a user