Skip to content

Commit

Permalink
remove default load url
Browse files Browse the repository at this point in the history
  • Loading branch information
qinghuan-deep committed Nov 19, 2020
1 parent cafc905 commit 01c7cc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chainx-signer",
"version": "2.0.1",
"version": "2.0.2",
"private": true,
"main": "electron.js",
"dependencies": {
Expand Down

0 comments on commit 01c7cc6

Please sign in to comment.