fix: window extraPath in production

This commit is contained in:
DIYgod
2024-07-25 23:21:18 +08:00
parent f621a24d20
commit 9df728664e
+1 -1
View File
@@ -70,7 +70,7 @@ export function createWindow(
process.env["ELECTRON_RENDERER_URL"] + (options?.extraPath || ""),
)
} else {
window.loadFile(path.resolve(__dirname, "../renderer/index.html"))
window.loadFile(path.resolve(__dirname, `../renderer/index.html${options?.extraPath || ""}`))
}
const refererMatchs = [