From 681bcf5c0e75318f215d38fac87419a6b0607e21 Mon Sep 17 00:00:00 2001 From: Le_Mocha Date: Mon, 8 Jul 2024 00:26:16 +0200 Subject: [PATCH] Disabled Devtools auto opening --- package.json | 2 +- src/assets/js/windows/mainWindow.js | 2 +- src/assets/js/windows/updateWindow.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0110e8cd3..e09a7a01a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "launcher", "preductname": "AlmyriaCraft Launcher", - "version": "1.1.0", + "version": "1.1.1", "description": "Launcher pour le serveur AlmyriaCraft", "main": "src/app.js", "author": "Luuxis, LeWarpy , LeMocha ", diff --git a/src/assets/js/windows/mainWindow.js b/src/assets/js/windows/mainWindow.js index b0575a024..b200c6550 100644 --- a/src/assets/js/windows/mainWindow.js +++ b/src/assets/js/windows/mainWindow.js @@ -46,7 +46,7 @@ function createWindow() { mainWindow.show(); } }); - mainWindow.webContents.openDevTools({ mode: 'undocked' }); + //mainWindow.webContents.openDevTools({ mode: 'undocked' }); } module.exports = { diff --git a/src/assets/js/windows/updateWindow.js b/src/assets/js/windows/updateWindow.js index 0a1a2c79d..211d565dc 100644 --- a/src/assets/js/windows/updateWindow.js +++ b/src/assets/js/windows/updateWindow.js @@ -41,7 +41,7 @@ function createWindow() { updateWindow.once('ready-to-show', () => { if (updateWindow) { updateWindow.show(); - updateWindow.webContents.openDevTools({ mode: 'undocked' }); + //updateWindow.webContents.openDevTools({ mode: 'undocked' }); } }); }