From 01c7cc6dde04a02904256c5d56e2778a7212aa6a Mon Sep 17 00:00:00 2001 From: qinghuan-deep <1245816264@qq.com> Date: Thu, 19 Nov 2020 20:29:23 +0800 Subject: [PATCH] remove default load url --- electron.js | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/electron.js b/electron.js index 9ca1129..6cb8bd9 100644 --- a/electron.js +++ b/electron.js @@ -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. diff --git a/package.json b/package.json index e9ec706..0dc8c0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chainx-signer", - "version": "2.0.1", + "version": "2.0.2", "private": true, "main": "electron.js", "dependencies": {