mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Merge pull request #7629 from mrsrec/patch-1
Fix cookie expiring in session
This commit is contained in:
commit
0ef4c11eb3
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