Skip to content

Commit

Permalink
fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed Aug 29, 2023
1 parent 2e3cdaf commit 9ec88ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9ec88ea

Please sign in to comment.