added ga switch on cookie options
This commit is contained in:
@@ -30,9 +30,23 @@ const CookieManagementMain = (props) => {
|
||||
|
||||
cookie.set("CookiePolicy", JSON.stringify(values).toString(), {
|
||||
expires: expDate,
|
||||
path: "/",
|
||||
});
|
||||
|
||||
function delete_cookie(name, path, domain) {
|
||||
document.cookie =
|
||||
name +
|
||||
"=" +
|
||||
(path ? ";path=" + path : "") +
|
||||
(domain ? ";domain=" + domain : "") +
|
||||
";expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
||||
}
|
||||
|
||||
usageState == "revoked" && delete_cookie("CookiePolicy", "/");
|
||||
|
||||
cookie.set("planning_casework", true, {
|
||||
expires: expDate,
|
||||
path: "/",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user