mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-25 06:49:51 +01:00
16 lines
378 B
JavaScript
16 lines
378 B
JavaScript
minMem= "2G"
|
|
maxMem = "4G"
|
|
|
|
|
|
ipcRenderer.on("nick", (event, args) => {
|
|
console.log(args)
|
|
document.querySelector("#nick-span").innerHTML = args.name
|
|
})
|
|
|
|
document.querySelector('#launch-btn').addEventListener("click", e => {
|
|
ipcRenderer.send('launch', {
|
|
minMem: minMem,
|
|
maxMem: maxMem
|
|
})
|
|
document.querySelector('#launch-btn').disabled = true
|
|
}) |