mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-17 19:12:40 -05:00
Fix cookie expiring in session
This commit is contained in:
parent
b8d75a8b5f
commit
c2cddbf633
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue