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:
@ -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>
|
||||
|
Reference in New Issue
Block a user