We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce23350 commit 9e43fe8Copy full SHA for 9e43fe8
1 file changed
6-data-storage/01-cookie/cookie.js
@@ -13,7 +13,7 @@ function setCookie(name, value, options = {}) {
13
...options
14
};
15
16
- if (options.expires instanceof Date && options.expires.toUTCString) {
+ if (options.expires instanceof Date) {
17
options.expires = options.expires.toUTCString();
18
}
19
0 commit comments