diff --git a/include/index.js b/include/index.js index 88b5531..19a7435 100644 --- a/include/index.js +++ b/include/index.js @@ -5,6 +5,7 @@ let launchBtn = document.querySelector('#launch-btn'); let fullProgressBar = document.querySelector('#fullprogressbar') let progressBar = document.querySelector('#progressbar') let loadingMessage = document.querySelector('#loading-message') +let disconnectBtn = document.querySelector('#disconnect-btn') ipcRenderer.on("nick", (event, args) => { console.log(args) @@ -34,4 +35,8 @@ ipcRenderer.on("close", (e, args) => { loadingMessage.innerHTML = "Téléchargement de Minecraft en cours..." progressBar.style.width = "0" launchBtn.disabled = false +}) + +disconnectBtn.addEventListener('click', e => { + ipcRenderer.send('disconnect') }) \ No newline at end of file diff --git a/index.html b/index.html index ee82946..575c930 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - +