Skip to content

Commit

Permalink
2.10.13 Sunrise Calculator - set cookie path to root
Browse files Browse the repository at this point in the history
  • Loading branch information
classaxe committed Jun 14, 2020
1 parent d4ea565 commit 5dd6348
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions public/js/functions.js
Expand Up @@ -2628,7 +2628,7 @@ var SUNRISE = {
}
},
cookie_clear: function() {
document.cookie = 'sunrise=||;expires=Thu, 01 Jan 1970 00:00:00 GMT';
document.cookie = 'sunrise=||;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/';
},
cookie_get: function(which) {
var cookies = document.cookie;
Expand All @@ -2649,7 +2649,7 @@ var SUNRISE = {
document.cookie = 'sunrise=' +
$('#sunrise_gsq').val() + '|' +
$('#sunrise_lat').val() + '|' +
$('#sunrise_lon').val() + ';expires=' + nextYear.toGMTString();
$('#sunrise_lon').val() + ';expires=' + nextYear.toGMTString() + '; path=/';
},
formValues: function() {
var latText = "Latitude"
Expand Down
2 changes: 1 addition & 1 deletion public/js/functions.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/tools.js
Expand Up @@ -420,7 +420,7 @@ var SUNRISE = {
}
},
cookie_clear: function() {
document.cookie = 'sunrise=||;expires=Thu, 01 Jan 1970 00:00:00 GMT';
document.cookie = 'sunrise=||;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/';
},
cookie_get: function(which) {
var cookies = document.cookie;
Expand All @@ -441,7 +441,7 @@ var SUNRISE = {
document.cookie = 'sunrise=' +
$('#sunrise_gsq').val() + '|' +
$('#sunrise_lat').val() + '|' +
$('#sunrise_lon').val() + ';expires=' + nextYear.toGMTString();
$('#sunrise_lon').val() + ';expires=' + nextYear.toGMTString() + '; path=/';
},
formValues: function() {
var latText = "Latitude"
Expand Down

0 comments on commit 5dd6348

Please sign in to comment.