From b45b6bcaad970338b4db2f042d7c994c87deb7e2 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sat, 28 Jun 2014 14:34:20 +0200 Subject: [PATCH] use default cookie-path instead of / --- uhr.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uhr.js b/uhr.js index a2e4e46..303fc92 100644 --- a/uhr.js +++ b/uhr.js @@ -57,7 +57,7 @@ along with this program. If not, see . uhr._update(); }, 1000); this._update(); - $.cookie('uhr-status' + this._id, 'on', {expires: 365, path: '/'}); + $.cookie('uhr-status' + this._id, 'on', {expires: 365}); } else { } }, @@ -66,7 +66,7 @@ along with this program. If not, see . window.clearInterval(this._timer); this._timer = null; this._update(); - $.cookie('uhr-status' + this._id, 'off', {expires: 365, path: '/'}); + $.cookie('uhr-status' + this._id, 'off', {expires: 365}); } }, toggle: function() { @@ -85,7 +85,7 @@ along with this program. If not, see . uhr._currentMinute = -1; uhr._update(); }); - $.cookie('uhr-language' + this._id, languageKey, {expires: 365, path: '/'}); + $.cookie('uhr-language' + this._id, languageKey, {expires: 365}); this._update(); } }, @@ -94,7 +94,7 @@ along with this program. If not, see . this.element.removeClass(this.options.theme).addClass(theme); $('#uhr-onoffswitch' + this._id).removeClass(this.options.theme).addClass(theme); this.options.theme = theme; - $.cookie('uhr-theme' + this._id, theme, {expires: 365, path: '/'}); + $.cookie('uhr-theme' + this._id, theme, {expires: 365}); } }, time: function(time) {