Skip to content

Commit

Permalink
Added period to domain setting on cookies (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxadesign authored Sep 13, 2019
1 parent 736d316 commit 383f719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/cookies-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const COOKIE_CATEGORIES = {
};

const domain = getDomain(document.domain);
const setDomain = !domain.indexOf('locahost') ? ';domain=' + domain : '';
const setDomain = !domain.indexOf('locahost') ? ';domain=.' + domain : '';

export function cookie(name, value, options) {
if (typeof value !== 'undefined') {
Expand Down

0 comments on commit 383f719

Please sign in to comment.