summaryrefslogtreecommitdiff
path: root/scripts/cookie.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cookie.js')
-rw-r--r--scripts/cookie.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cookie.js b/scripts/cookie.js
index 9c88963..649544d 100644
--- a/scripts/cookie.js
+++ b/scripts/cookie.js
@@ -24,13 +24,13 @@ class Cookies {
}
static setYearCookie(name, value) {
- var date = new Date(Date.now());
+ let date = new Date(Date.now());
date.setFullYear(date.getFullYear() + 1);
Cookies.setCookie(name, value, {SameSite: "Strict", expires: date.toUTCString()});
}
static removeCookie(name) {
- var date = new Date(0);
+ let date = new Date(0);
Cookies.setCookie(name, "", {SameSite: "Strict", expires: date.toUTCString()});
}
}