Skip to content

Commit

Permalink
fix electron dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
qinghuan-deep committed Nov 22, 2020
1 parent 2bf8e7b commit 1d0e5c8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19,503 deletions.
18 changes: 9 additions & 9 deletions electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ function createWindow() {
webPreferences: { preload: path.join(__dirname, 'preload.js') }
})
mainWindow.removeMenu() // only work for linux and windows
// if (isDev) {
// mainWindow
// .loadURL('http://localhost:3002')
// .then(() => console.log('url loaded'))
// } else {
mainWindow
.loadFile(path.join(__dirname, './build/index.html'))
.then(() => console.log('index.html loaded'))
// }
if (isDev) {
mainWindow
.loadURL('http://localhost:3002')
.then(() => console.log('url loaded'))
} else {
mainWindow
.loadFile(path.join(__dirname, './build/index.html'))
.then(() => console.log('index.html loaded'))
}

if (isDev) {
// Open the DevTools.
Expand Down
Loading

0 comments on commit 1d0e5c8

Please sign in to comment.