Increase cookie lifespan

This commit is contained in:
Florine W. Dekker 2019-06-15 14:41:59 +02:00
parent 305b7a58e9
commit e795f96e00
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@
/**
* Saves the currently-selected signatures to a cookie.
*/
const saveSelectedSignaturesToCookie = () => Cookies.set("selectedSignatures", getSelectedSignatures().join(","));
const saveSelectedSignaturesToCookie =
() => Cookies.set("selectedSignatures", getSelectedSignatures().join(","), {expires: 5 * 365});
/**
* Updates the button used to toggle all signatures on or off.