From 4cfab365c260096c2b5017cae09c5c38ab533adc Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Thu, 21 Oct 2021 18:17:40 +0200 Subject: [PATCH] build: added .nvmrc --- .nvmrc | 1 + src/main/index.js | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..e24183e5 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v14.18.1 diff --git a/src/main/index.js b/src/main/index.js index 753a3122..08355612 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -41,16 +41,15 @@ async function createMainWindow () { remoteMain.enable(window.webContents); try { - if (isDevelopment) { - // + if (isDevelopment) { // await window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`); // const { default: installExtension, VUEJS3_DEVTOOLS } = require('electron-devtools-installer'); - // const oldDevToolsID = session.defaultSession.getAllExtensions().find(ext => ext.name === 'Vue.js devtools').id; - // session.defaultSession.removeExtension(oldDevToolsID); - // const toolName = await installExtension(VUEJS3_DEVTOOLS); - // console.log(toolName, 'installed'); + // const oldDevToolsID = session.defaultSession.getAllExtensions().find(ext => ext.name === 'Vue.js devtools').id; + // session.defaultSession.removeExtension(oldDevToolsID); + // const toolName = await installExtension(VUEJS3_DEVTOOLS); + // console.log(toolName, 'installed'); } else await window.loadURL(new URL(`file:///${path.join(__dirname, 'index.html')}`).href); }