From b7458fcda0e2f0c93eb82fbd2c84931ab9168f4f Mon Sep 17 00:00:00 2001 From: kuldeep55567 Date: Mon, 15 May 2023 11:58:15 +0530 Subject: [PATCH] Video Call Added from my side --- public/scripts/dashboard.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}`) }