Update main.js
This commit is contained in:
parent
d6fa5b69ce
commit
48c5fd4ead
3
main.js
3
main.js
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user