Update main.js

This commit is contained in:
Gilles Lazures 2025-05-10 18:52:18 +02:00
parent d6fa5b69ce
commit 48c5fd4ead

View File

@ -47,7 +47,7 @@ async function createLauncherWindow() {
contextIsolation: true, contextIsolation: true,
preload: path.join(__dirname, "modules", "preload.js"), preload: path.join(__dirname, "modules", "preload.js"),
webviewTag: true, webviewTag: true,
devTools: true devTools: false
} }
}) })
if (os.platform() == "darwin") { if (os.platform() == "darwin") {
@ -339,7 +339,6 @@ async function launchGame(restartGame) {
}) })
launcher.on("data", (log) => { launcher.on("data", (log) => {
if (sendToRenderer) { if (sendToRenderer) {
console.log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
launcherWindow.webContents.send("Response<game::launched>") launcherWindow.webContents.send("Response<game::launched>")
sendToRenderer = false sendToRenderer = false
} }