Skip to content

Commit

Permalink
stringify cookievalue to fix magento#5596
Browse files Browse the repository at this point in the history
  • Loading branch information
bka committed Sep 5, 2016
1 parent d0495a9 commit aa14cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Cookie/view/frontend/web/js/notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ define([
$(this.options.cookieAllowButtonSelector).on('click', $.proxy(function() {
var cookieExpires = new Date(new Date().getTime() + this.options.cookieLifetime * 1000);

$.mage.cookies.set(this.options.cookieName, this.options.cookieValue, {expires: cookieExpires});
$.mage.cookies.set(this.options.cookieName, JSON.stringify(this.options.cookieValue), {expires: cookieExpires});
if ($.mage.cookies.get(this.options.cookieName)) {
window.location.reload();
} else {
Expand Down

0 comments on commit aa14cc4

Please sign in to comment.