mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
feat!: remove Clarity implicit consent option (EU compliance)
This commit is contained in:
@@ -12,18 +12,12 @@ export const rejectCookies = (): void =>
|
||||
window.clarity?.("consent", false);
|
||||
};
|
||||
|
||||
export const dismissCookies = (): void =>
|
||||
{
|
||||
setCookie("CC", "", 1209600); // 14 days
|
||||
};
|
||||
|
||||
export const getCookieChoice = (): "accepted" | "rejected" | "acknowledged" | "none" =>
|
||||
export const getCookieChoice = (): "accepted" | "rejected" | "none" =>
|
||||
{
|
||||
switch (getCookie("CC"))
|
||||
{
|
||||
case "1": return "accepted";
|
||||
case "0": return "rejected";
|
||||
case "": return "acknowledged";
|
||||
default: return "none";
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user