feature/IO-2916-Remove-Beta-Switch-LEGACY - Remove cookie
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -116,7 +116,7 @@ function Header({
|
|||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
export const deleteBetaCookie = () => {
|
const deleteBetaCookie = () => {
|
||||||
const cookieExists = document.cookie.split("; ").some((row) => row.startsWith(`betaSwitchImex=`));
|
const cookieExists = document.cookie.split("; ").some((row) => row.startsWith(`betaSwitchImex=`));
|
||||||
if (cookieExists) {
|
if (cookieExists) {
|
||||||
const domain = window.location.hostname.split(".").slice(-2).join(".");
|
const domain = window.location.hostname.split(".").slice(-2).join(".");
|
||||||
@@ -126,9 +126,9 @@ function Header({
|
|||||||
console.log(`betaSwitchImex cookie does not exist`);
|
console.log(`betaSwitchImex cookie does not exist`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
deleteBetaCookie();
|
deleteBetaCookie();
|
||||||
|
|
||||||
const accountingChildren = [];
|
const accountingChildren = [];
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user