fix: invalid url (#2652)

This commit is contained in:
AZhan
2025-05-08 17:06:14 +08:00
committed by GitHub
parent 69886a2602
commit aaee61f048

View File

@@ -79,7 +79,7 @@ export class Utils {
}
if (!/^https?:/.test(baseUrl)) {
const fileSchema = "files://";
const fileSchema = "file://";
baseUrl = fileSchema + baseUrl;
return new URL(relativeUrl, baseUrl).href.substring(fileSchema.length);
}