mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -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 () {
|
||||
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});
|
||||
jar.set('scratchpolicyseen', true, opts);
|
||||
|
|
Loading…
Reference in a new issue