1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-03 18:57:35 +01:00

build: added .nvmrc

This commit is contained in:
Fabio Di Stasio 2021-10-21 18:17:40 +02:00
parent 8d0aa73d1e
commit 4cfab365c2
2 changed files with 6 additions and 6 deletions

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v14.18.1

View File

@ -41,16 +41,15 @@ async function createMainWindow () {
remoteMain.enable(window.webContents); remoteMain.enable(window.webContents);
try { try {
if (isDevelopment) { if (isDevelopment) { //
//
await window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`); await window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`);
// const { default: installExtension, VUEJS3_DEVTOOLS } = require('electron-devtools-installer'); // const { default: installExtension, VUEJS3_DEVTOOLS } = require('electron-devtools-installer');
// const oldDevToolsID = session.defaultSession.getAllExtensions().find(ext => ext.name === 'Vue.js devtools').id; // const oldDevToolsID = session.defaultSession.getAllExtensions().find(ext => ext.name === 'Vue.js devtools').id;
// session.defaultSession.removeExtension(oldDevToolsID); // session.defaultSession.removeExtension(oldDevToolsID);
// const toolName = await installExtension(VUEJS3_DEVTOOLS); // const toolName = await installExtension(VUEJS3_DEVTOOLS);
// console.log(toolName, 'installed'); // console.log(toolName, 'installed');
} }
else await window.loadURL(new URL(`file:///${path.join(__dirname, 'index.html')}`).href); else await window.loadURL(new URL(`file:///${path.join(__dirname, 'index.html')}`).href);
} }