FumesAI
commited on
Commit
•
debad34
1
Parent(s):
b35e1e4
Update index.html
Browse files- index.html +3 -2
index.html
CHANGED
@@ -120,12 +120,13 @@
|
|
120 |
<script>
|
121 |
var socket = io.connect('https://fumes-api.onrender.com');
|
122 |
var messages = document.getElementById('chat-messages');
|
123 |
-
let user =
|
124 |
while(true){
|
125 |
|
126 |
-
user = prompt('Your Username')
|
127 |
if(user!=null && user!='' && user!=undefined){
|
128 |
user.toUpperCase()
|
|
|
129 |
break
|
130 |
}
|
131 |
}
|
|
|
120 |
<script>
|
121 |
var socket = io.connect('https://fumes-api.onrender.com');
|
122 |
var messages = document.getElementById('chat-messages');
|
123 |
+
let user = localStorage.getItem("userName")
|
124 |
while(true){
|
125 |
|
126 |
+
user = prompt('Create Your Username')
|
127 |
if(user!=null && user!='' && user!=undefined){
|
128 |
user.toUpperCase()
|
129 |
+
localStorage.setItem("userName",user.toUpperCase() )
|
130 |
break
|
131 |
}
|
132 |
}
|