Use .value

This commit is contained in:
Korbs 2024-07-11 18:05:03 -04:00
parent ea925d9144
commit 2f56f1f653

View file

@ -5,13 +5,13 @@ import i18next, { t } from "i18next";
// Cookies
/// Language
//// If the user is new to the site, set English as default
if (Astro.cookies.get("Language") === undefined) {
if (Astro.cookies.get("Language").value === undefined) {
Astro.cookies.set("Language", "EN", {path: "/",sameSite: 'strict'})
}
/// Telemtry
//// Users should be opted-out by default
if (Astro.cookies.get("Telemtry") === undefined) {
if (Astro.cookies.get("Telemtry").value === undefined) {
Astro.cookies.set("Telemtry", "Disabled", {path: "/",sameSite: 'strict'})
}