We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5bbc17 commit 8b955f9Copy full SHA for 8b955f9
1 file changed
html/chat-room/html/chat-room-simple/chat-room-simple.html
@@ -145,11 +145,18 @@
145
146
var info = $(shadow,'#info');
147
debugger;
148
- var str = ls.read.username||def.username;
149
- $(info,'#username').value = str;
+ var {value,error} = ls.read.username;
+ if(error){
150
+ value = def.username;
151
+ }
152
+ //var str = ls.read.username||def.username;
153
+ $(info,'#username').value = value;
154
- var str = ls.read.password||def.password;
- $(info,'#password').value = str;
155
+ var {value,error} = ls.read.password;
156
157
+ value = def.password;
158
159
+ $(info,'#password').value = value;
160
$(info,'#show').onclick = btn.password;
161
162
$(shadow,'#txt').onkeydown = kd.txt;
0 commit comments