fix: Remove unnecessary cookie setting in removeCookie function

This commit is contained in:
Frederico Santos 2024-07-22 22:32:25 +01:00
parent 04819b88d6
commit b42fa558f8

View File

@ -302,6 +302,7 @@ export function setCookie(cName: string, cValue: string): void {
export function removeCookie(cName: string): void {
document.cookie = `${cName}=;Secure;SameSite=Strict;Domain=${window.location.hostname};Path=/;Expires=Thu, 01 Jan 1970 00:00:00 GMT`;
document.cookie = `${cName}=;Secure;SameSite=Strict;Path=/;Expires=Thu, 01 Jan 1970 00:00:00 GMT`;
}
export function getCookie(cName: string): string {