mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -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 () {
|
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