Don't set the path attribute when setting a cookie. (#1893)

Co-authored-by: Robert Crowston <crowston@protonmail.com>
This commit is contained in:
Charles Kerr 2021-10-07 11:16:09 -05:00 committed by GitHub
parent 959cbe2c64
commit 435f17641a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export class Prefs extends EventTarget {
const date = new Date();
date.setFullYear(date.getFullYear() + 1);
// 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) {