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:
parent
8d0aa73d1e
commit
4cfab365c2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user