Subversion Repositories SmartDukaan

Rev

Rev 27754 | Rev 33061 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27754 Rev 32390
Line 91... Line 91...
91
					if(response.name)
91
					if(response.name)
92
						{
92
						{
93
						partnerName=response.name;
93
						partnerName=response.name;
94
						}
94
						}
95
					addProfileInLocalDb();
95
					addProfileInLocalDb();
-
 
96
					if (!!window.location.search) {
-
 
97
						const urlParams = new URLSearchParams(window.location.search);
-
 
98
						if (urlParams.get("redirect") !== null) {
-
 
99
							window.location.href = `${context}${urlParams.get("redirect")}`;
-
 
100
							return;
-
 
101
						}
-
 
102
					}
96
					window.location.href = response.redirectUrl;
103
					window.location.href = response.redirectUrl;
97
				} else {
104
				} else {
98
					alert("Retailer not found, Please login");
105
					alert("Retailer not found, Please login");
99
				}
106
				}
100
			});
107
			});