[bugfix] do not encode url query params

This commit is contained in:
MathieuG-P
2024-11-05 20:32:23 +01:00
parent 893b244eb1
commit 0d913641d7
+3 -2
View File
@@ -8,8 +8,9 @@ export function resolveHtmlPath (htmlFileName: string) {
const url = new URL(`http://localhost:${port}/${htmlFileName}`);
return url.toString();
}
const filePath = path.resolve(__dirname, "..", "renderer", htmlFileName);
return pathToFileURL(filePath).toString();
const filePath = path.resolve(__dirname, "..", "renderer");
return pathToFileURL(filePath).toString().concat("/", htmlFileName);
};