(text: &str)
| 147 | |
| 148 | #[cfg(target_arch = "wasm32")] |
| 149 | fn cookie_encode(text: &str) -> String { |
| 150 | js_sys::encode_uri_component(text) |
| 151 | .as_string() |
| 152 | .unwrap_or_else(|| text.to_string()) |
| 153 | } |
| 154 | |
| 155 | #[cfg(target_arch = "wasm32")] |
| 156 | fn cookie_decode(text: &str) -> io::Result<String> { |