Skip to content

Commit

Permalink
Fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jul 7, 2024
1 parent 506152d commit 3251784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ const NODE_MODULES_PATH: &str = "/node_modules/";
const NODE_MODULES_PATH: &str = "\\node_modules\\";

#[cfg(not(target_os = "windows"))]
const PATH_PREFIX: &str = "file:///";
const PATH_PREFIX: &str = "file://";

#[cfg(target_os = "windows")]
const PATH_PREFIX: &str = "file://";
const PATH_PREFIX: &str = "file:///";

#[cfg(target_family = "wasm")]
#[napi]
Expand Down

0 comments on commit 3251784

Please sign in to comment.