Skip to content

Commit

Permalink
Fix #963 - Set path of vpnBannerDismissed cookie to root
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Schoch committed Aug 17, 2021
1 parent 0ebfc5a commit 0c2173e
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 0c2173e

Please sign in to comment.