fix: win.loadFile() path
This commit is contained in:
1 parent
23a98a26b4
commit
9150036761
1 file changed
+1
-1
@@ -31,7 +31,7 @@ async function createWindow() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (app.isPackaged) {
|
if (app.isPackaged) {
|
||||||
win.loadFile(join(__dirname, '../index.html'))
|
win.loadFile(join(__dirname, '../../index.html'))
|
||||||
} else {
|
} else {
|
||||||
win.loadURL(url)
|
win.loadURL(url)
|
||||||
// win.webContents.openDevTools()
|
// win.webContents.openDevTools()
|
||||||
|
|||||||
Reference in new issue
Block a user