diff --git a/src/components/CookieNotice.vue b/src/components/CookieNotice.vue index e6828b235567cae5f460155890fd601726a713ba..ec6ed5eb2f9163f0b1e5df4b3d575fcb55e0fee7 100644 --- a/src/components/CookieNotice.vue +++ b/src/components/CookieNotice.vue @@ -85,7 +85,7 @@ const acceptAll = () => { removeCookie(COOKIE_KEY); setCookie( COOKIE_KEY, - `${COOKIE_AGREED_STATUS.ALL_AGREED}${cookieStore.version}`, + COOKIE_AGREED_STATUS.ALL_AGREED, 180, COOKIE_DOMAIN ); @@ -100,7 +100,7 @@ const rejectAll = () => { removeCookie(COOKIE_KEY); setCookie( COOKIE_KEY, - `${COOKIE_AGREED_STATUS.NECCESSARY_AGREED}${cookieStore.version}`, + COOKIE_AGREED_STATUS.NECCESSARY_AGREED, 180, COOKIE_DOMAIN ); diff --git a/src/stores/cookies.ts b/src/stores/cookies.ts index 664872ffc257a690e2aaeb78bd5648a588800e4d..d7f0b12eb6c1d00f8837c9b4822f84492f72dfa6 100644 --- a/src/stores/cookies.ts +++ b/src/stores/cookies.ts @@ -12,7 +12,6 @@ export const COOKIE_KEY = 'agreed-cookiepolicy'; export const useCookieStore = defineStore('cookie', { state: () => ({ status: COOKIE_AGREED_STATUS.NOT_SIGNED, - version: '20240830', }), getters: { isAllAgreed(state) { @@ -23,12 +22,6 @@ export const useCookieStore = defineStore('cookie', { getUserCookieStatus() { const cookieVal = getCookie(COOKIE_KEY) ?? '0'; const cookieStatusVal = cookieVal[0]; - const privacyVersionVal = cookieVal.slice(1); - if (privacyVersionVal !== this.version) { - this.status = COOKIE_AGREED_STATUS.NOT_SIGNED; - return COOKIE_AGREED_STATUS.NOT_SIGNED; - } - if (cookieStatusVal === COOKIE_AGREED_STATUS.ALL_AGREED) { this.status = COOKIE_AGREED_STATUS.ALL_AGREED; return COOKIE_AGREED_STATUS.ALL_AGREED;