fix: redirect console user domain name

This commit is contained in:
RaktimaNXG
2024-04-04 12:06:21 +05:30
parent bdb7d9be8f
commit f0149f6fd8
+3 -2
View File
@@ -51,7 +51,8 @@ const HomeLayout = () => {
}, []);
//function to use save data in cookies storage
const saveCookies = () => {
const domainName = window.location.hostname; //app.opensignlabs.com
const main_Domain = window.location.origin;
const domainName = window.location.hostname; //app.opensignlabs.com
// Find the index of the first dot in the string
const indexOfFirstDot = domainName.indexOf(".");
// Remove the first dot and get the substring starting from the next character
@@ -60,7 +61,7 @@ const HomeLayout = () => {
secure: true,
domain: updateDomain
});
setCookie("main_Domain", domainName, {
setCookie("main_Domain", main_Domain, {
secure: true,
domain: updateDomain
});