Skip to content

Commit

Permalink
Set all cookies on the root path
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Aug 17, 2016
1 parent fb9afd3 commit 31c81f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ $(document).ready(function () {

$('.welcome .close-wrap').on('click', function() {
$('.welcome').hide();
$.cookie('_osm_welcome', 'hide', { expires: expiry });
$.cookie('_osm_welcome', 'hide', { expires: expiry, path: '/' });
});

var bannerExpiry = new Date();
Expand All @@ -182,7 +182,7 @@ $(document).ready(function () {
$('#banner').hide();
e.preventDefault();
if (cookieId) {
$.cookie(cookieId, 'hide', { expires: bannerExpiry });
$.cookie(cookieId, 'hide', { expires: bannerExpiry, path: '/' });
}
});

Expand Down

0 comments on commit 31c81f1

Please sign in to comment.