code added

This commit is contained in:
2023-04-24 15:58:39 +05:30
parent ee730c9a18
commit 6b500e2939
7 changed files with 67 additions and 59 deletions
+8
View File
@@ -138,6 +138,14 @@ function initLogin() {
//window.localStorage.setItem("Userpassword", userPassword);
window.localStorage.setItem("Isloggedintoaster", true);
window.localStorage.setItem("Isloggedin", true);
const isCartAdded = localStorage.getItem(CART_ADD);
if(isCartAdded){
localStorage.removeItem(CART_ADD);
window.location.href = `/selectdelivery.html`;
return;
}
window.location.href = `./index.html`;
} else {
toasterOpts();