fix: win.loadFile() path

This commit is contained in:
草鞋没号 committed 2022-06-06 20:27:23 +08:00
1 parent 23a98a26b4
commit 9150036761
1 file changed
+1 -1
+1 -1
View File
@@ -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()