Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanEssam0110 committed Dec 29, 2023
1 parent 2aff464 commit 716e41c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assignment-10 [Login JS & LocalStorage]/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const emailPattern = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/
const passwordPattern = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/

// handle home page & welcome text
console.log(window.location.pathname);
if (window.location.pathname === '/LoginSystem-JS/home.html') {
if (window.location.pathname === '/Route-FrontEnd-Diploma/Assignment-10%20[Login%20JS%20&%20LocalStorage]/home.html') {
currentUser.logged === false ? openWindow('index.html') : sayWelcome();
}

Expand Down

0 comments on commit 716e41c

Please sign in to comment.