Skip to content

Commit

Permalink
Merge pull request #91 from adrianoleiterodrigues/patch-1
Browse files Browse the repository at this point in the history
feat: added support to multidimensional array
  • Loading branch information
cmp-cc authored Mar 3, 2023
2 parents f6e2f66 + ae1c179 commit 85fc579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue-cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"]\t current key name: ' + key);
}
// support json object
if (value && value.constructor === Object) {
if (value && typeof value === 'object') {
value = JSON.stringify(value);
}
var _expires = '';
Expand Down

0 comments on commit 85fc579

Please sign in to comment.