(key: &str)
| 185 | |
| 186 | #[cfg(target_arch = "wasm32")] |
| 187 | fn remove_cookie_value(key: &str) -> io::Result<()> { |
| 188 | document()? |
| 189 | .set_cookie(&format!( |
| 190 | "{key}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax" |
| 191 | )) |
| 192 | .map_err(js_err) |
| 193 | } |
| 194 | |
| 195 | #[cfg(target_arch = "wasm32")] |
| 196 | fn load_bytes_impl(scope: StorageScope, key: &str) -> io::Result<Option<Vec<u8>>> { |
no test coverage detected