fix: `win.loadFile()` path
This commit is contained in:
parent
23a98a26b4
commit
9150036761
|
@ -31,7 +31,7 @@ async function createWindow() {
|
|||
})
|
||||
|
||||
if (app.isPackaged) {
|
||||
win.loadFile(join(__dirname, '../index.html'))
|
||||
win.loadFile(join(__dirname, '../../index.html'))
|
||||
} else {
|
||||
win.loadURL(url)
|
||||
// win.webContents.openDevTools()
|
||||
|
|
Loading…
Reference in New Issue