From b42fa558f8e77836b4a1f34eb20d09f24c8cf055 Mon Sep 17 00:00:00 2001 From: Frederico Santos Date: Mon, 22 Jul 2024 22:32:25 +0100 Subject: [PATCH] fix: Remove unnecessary cookie setting in removeCookie function --- src/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.ts b/src/utils.ts index 3d55ab8fc65a..3b26fa23e993 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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 {