From 9ec88ea0567b636297232d27e84983dd9897f5c5 Mon Sep 17 00:00:00 2001 From: Clover Johnson <95094165+callmeclover@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:30:42 +0000 Subject: [PATCH] fix 3 --- views/index.ejs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index b0ba8f38..32cf149a 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -108,7 +108,7 @@ function httpGet(theUrl) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", theUrl, false); // false for synchronous request - xmlHttp.send(null); + xmlHttp.send(null); return xmlHttp.responseText; } @@ -144,9 +144,9 @@ var uname = localStorage.getItem("uname"); // var pfpic = localStorage.getItem("pfp"); - if (uname == null || uname == "" || uname == undefined /*|| localStorage.getItem('pfp') == undefined || localStorage.getItem('pfp') == null*/) { - window.location = "/login"; - } + // if (uname == null || uname == "" || uname == undefined /*|| localStorage.getItem('pfp') == undefined || localStorage.getItem('pfp') == null*/) { + // window.location = "/login"; + // } var socket = io.connect(); socket.on("connect", function (data) { socket.emit("join", uname + " (" + user + ") joined from " + ip);