Skip to content

Commit

Permalink
Group related code together
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartl committed Feb 15, 2018
1 parent 5083c64 commit f9f3f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js.cookie.js
Expand Up @@ -78,7 +78,6 @@
key = key.replace(/[\(\)]/g, escape);

var stringifiedAttributes = '';

for (var attributeName in attributes) {
if (!attributes[attributeName]) {
continue;
Expand All @@ -97,6 +96,7 @@
// ...
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
}

return (document.cookie = key + '=' + value + stringifiedAttributes);
}

Expand Down

0 comments on commit f9f3f0e

Please sign in to comment.