fix path string (#1597)

This commit is contained in:
YuX
2022-12-10 10:17:12 +08:00
committed by GitHub
parent 88538b7c2c
commit b400dfb386

View File

@@ -6,7 +6,7 @@ serve({
// If the URL is empty, display this file.
if (pathname === "") {
return new Response(file(import.meta.url));
return new Response(file(import.meta.url.replace("file://", "")));
}
return new Response(file(pathname));