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); }