Use .value
This commit is contained in:
parent
ea925d9144
commit
2f56f1f653
1 changed files with 2 additions and 2 deletions
|
@ -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'})
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue