From 325178449a5100453af21162589ebb3ca2adfb2d Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sun, 7 Jul 2024 21:39:17 +0800 Subject: [PATCH] Fix windows --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ceaa864..5ccf01c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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]