Skip to content

Commit

Permalink
Merge pull request #1025 from lennartschoch/963-fix-vpn-banner-cookie…
Browse files Browse the repository at this point in the history
…-path

Fix #963 - Set path of vpnBannerDismissed cookie to root
  • Loading branch information
groovecoder authored Aug 18, 2021
2 parents 158dc5b + 0c2173e commit 43fd119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function vpnBannerLogic() {
setCookie: function() {
const date = new Date();
date.setTime(date.getTime() + 30*24*60*60*1000);
document.cookie = "vpnBannerDismissed=true; expires=" + date.toUTCString();
document.cookie = "vpnBannerDismissed=true; expires=" + date.toUTCString() + "; path=/";
},
show: function() {
vpnPromoBanner.classList.remove("closed");
Expand Down

0 comments on commit 43fd119

Please sign in to comment.