Skip to content

Commit

Permalink
changed string encoding in template preview (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaevh authored and sebastienros committed Oct 3, 2017
1 parent 270d3e0 commit 033d78b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
var formData = value;
if (!formData) return;
var encoded = window.btoa(formData);
var encoded = window.btoa(unescape(encodeURIComponent(formData)));
var chunks = Math.floor(encoded.length / 1364) + 1;
Cookies.set("orchard:templates:count", chunks, { path: "/" });
Expand Down

0 comments on commit 033d78b

Please sign in to comment.