1
0
mirror of https://github.com/TheGreyDiamond/Enlight.git synced 2025-07-19 05:03:49 +02:00

Joining works now

This commit is contained in:
TheGreyDiamond
2020-11-29 00:35:03 +01:00
parent f379d1c12d
commit 618cc6ed60
5 changed files with 169 additions and 103 deletions

View File

@ -214,8 +214,20 @@
}, 1000);
</script>
<button onclick='ipcRenderer.sendSync("synchronous-message", "SESSION:createNew");''>
Name: <input type="text" value="Unnamed session" id="sessionName">
<button onclick='createNewSession()'>
Create new session
</button>
<script>
function createNewSession() {
val = document.getElementById("sessionName").value
if (val.indexOf('|') > -1)
{
alert("Your Sessionname may not contain a |");
}
console.log(val)
ipcRenderer.sendSync("synchronous-message", "SESSION:createNew| " + val);
}
</script>
</body>
</html>