Skip to content

Commit

Permalink
tests: initSimnet handles absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Jan 24, 2025
1 parent ccdfa24 commit 4a4c5fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/clarinet-files/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ impl FileLocation {
path.pop();
}
FileLocation::Url { url } => {
#[cfg(target_arch = "wasm32")]
web_sys::console::log_1(&format!("url: {}", url).into());

let mut segments = url
.path_segments_mut()
.map_err(|_| "unable to mutate url".to_string())?;
Expand Down

0 comments on commit 4a4c5fd

Please sign in to comment.