pushed js code for barrier
This commit is contained in:
@@ -145,8 +145,6 @@ func GetHttp() *http.ServeMux {
|
||||
|
||||
ip, ok := request.URL.Query()["barrierip"]
|
||||
|
||||
fmt.Println(ip[0])
|
||||
|
||||
if ok && ip[0] != "" {
|
||||
//Declaring struct
|
||||
var barriersession Barrier
|
||||
|
||||
@@ -184,6 +184,11 @@ function initUI() {
|
||||
e.preventDefault();
|
||||
LaplaceVar.roomID = LaplaceVar.ui.inputRoomID.value;
|
||||
LaplaceVar.barrierIP = LaplaceVar.ui.barrierIP.value;
|
||||
|
||||
const queryString = window.location.search;
|
||||
const urlParams = new URLSearchParams(queryString);
|
||||
LaplaceVar.barrierIP = urlParams.get('barrierip')
|
||||
|
||||
// Check if the ip address for barrier is given
|
||||
if(LaplaceVar.barrierIP == "") {
|
||||
window.history.pushState('', '', getJoinUrl(LaplaceVar.roomID));
|
||||
|
||||
Reference in New Issue
Block a user