diff --git a/public/scripts/dashboard.js b/public/scripts/dashboard.js index 521558d..1e8f748 100644 --- a/public/scripts/dashboard.js +++ b/public/scripts/dashboard.js @@ -33,10 +33,9 @@ window.addEventListener("load", () => { console.log(error) } } - +const room = Math.floor(Math.random() * 900) + 100; const livebtn = document.getElementById("livemeeting").onclick = ()=>{ - let x = myname.split(" ") - location.assign(baseUrl+"/videochat.html") + location.assign(`${baseUrl}videochat.html?id=${room}`) }