Joining works now

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

No files matched your search

+13 -1
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>