mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue