Fix cookie expiring in session

This commit is contained in:
mrsrec 2023-05-27 22:27:37 -07:00 committed by GitHub
parent b8d75a8b5f
commit c2cddbf633
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ class PrivacyBanner extends React.Component {
handleCloseBanner () { handleCloseBanner () {
const opts = { const opts = {
expires: new Date(new Date().setDate(new Date().getDate + 21)) // expires after 3 weeks expires: new Date(new Date().setDate(new Date().getDate() + 21)) // expires after 3 weeks
}; };
this.setState({dismissedPrivacyBanner: true}); this.setState({dismissedPrivacyBanner: true});
jar.set('scratchpolicyseen', true, opts); jar.set('scratchpolicyseen', true, opts);