diff --git a/localStorageModule.js b/localStorageModule.js index ca23c51..1b6483a 100644 --- a/localStorageModule.js +++ b/localStorageModule.js @@ -160,7 +160,7 @@ angularLocalStorage.service('localStorageService', [ expiry = ", expires="+expiryDate.toGMTString(); } if (!!key) { - document.cookie = prefix + key + "=" + encodeURIComponent(value) + expiry + ", path="+cookie.path; + document.cookie = prefix + key + "=" + encodeURIComponent(value) + expiry + "; path="+cookie.path; } } catch (e) { $rootScope.$broadcast('LocalStorageModule.notification.error',e.message);