fix: window extraPath in production

This commit is contained in:
DIYgod 2024-07-25 23:21:18 +08:00
parent f621a24d20
commit 9df728664e
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

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 = [