Skip to content

Commit

Permalink
remove secure setting from cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
michnhokn committed Oct 20, 2020
1 parent cda2ab8 commit 66f7953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/cookie-modal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions src/cookie-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,15 @@ class CookieModal {
_this.$ACCEPT_BUTTON.addClass('hide');
_this.$DENY_BUTTON.addClass('hide');
_this.$SAVE_BUTTON.removeClass('hide');
}
else {
} else {
_this.$ACCEPT_BUTTON.removeClass('hide');
_this.$DENY_BUTTON.removeClass('hide');
_this.$SAVE_BUTTON.addClass('hide');
}
}

setCookie(features) {
Cookies.set(
'cookie_status',
features.join(','),
{expires: 365, secure: true},
);
Cookies.set('cookie_status', features.join(','), {expires: 365});
}

closeCookieModal() {
Expand Down

0 comments on commit 66f7953

Please sign in to comment.