You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Entregas/Proyecto/js/main.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@
119
119
letusr=document.querySelector('#GetUsuario').value;//Toma valor ingresado en campo Usuario
120
120
letpas=document.querySelector('#GetPass').value;//Toma valor ingresado en campo PAssword
121
121
letusuarios=JSON.parse(localStorage.getItem('usuarios'))||[];//Lee localstorage para tomar informacion del primer USR y PASS, si no hay valores retorna Array Vacio (derecha del OR)
122
-
122
+
event.preventDefault()
123
123
let[[{ usuario, pass }]]=usuarios;//Desestructura informacion para tomar valores del primer USR Y PASS
0 commit comments