Skip to content

Commit

Permalink
Increase NewsPopup cookie validity period to 1 year
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Aug 22, 2024
1 parent 43b93bd commit 2e0fc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/NewsPopup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class NewsPopup extends React.Component {
}
closeDialog = () => {
if (this.state.dontShowAgain) {
const days = 14;
const days = 365;
const d = new Date();
d.setTime(d.getTime() + (days * 24 * 60 * 60 * 1000));
document.cookie = "newsrev=" + this.props.newsRev + "; SameSite=Lax; expires=" + d.toUTCString();
Expand Down

0 comments on commit 2e0fc18

Please sign in to comment.