Don't set the path attribute when setting a cookie. (#1893)
Co-authored-by: Robert Crowston <crowston@protonmail.com>
This commit is contained in:
parent
959cbe2c64
commit
435f17641a
|
@ -67,7 +67,7 @@ export class Prefs extends EventTarget {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
date.setFullYear(date.getFullYear() + 1);
|
date.setFullYear(date.getFullYear() + 1);
|
||||||
// eslint-disable-next-line unicorn/no-document-cookie
|
// eslint-disable-next-line unicorn/no-document-cookie
|
||||||
document.cookie = `${key}=${value}; SameSite=Strict; expires=${date.toGMTString()}; path=/`;
|
document.cookie = `${key}=${value}; SameSite=Strict; expires=${date.toGMTString()}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
static _getCookie(key, fallback) {
|
static _getCookie(key, fallback) {
|
||||||
|
|
Loading…
Reference in New Issue