Skip to content

Commit

Permalink
Fix the javascript cookie detection
Browse files Browse the repository at this point in the history
Split on `; ` instead of just `;`
  • Loading branch information
andybroomfield committed Jul 27, 2024
1 parent 5c06cb2 commit 45659ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/alert_banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

$(document).ready(function() {

var all_cookies = document.cookie.split(';');
var all_cookies = document.cookie.split('; ');
for (var i = 0; i < all_cookies.length; i++) {
var indv_cookie = all_cookies[i].split('=');
if (indv_cookie[0] == 'hide-alert-banner-token') {
Expand Down

0 comments on commit 45659ca

Please sign in to comment.