minor fixes
This commit is contained in:
parent
7cd8f55be2
commit
db3b3f8e7a
2 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,7 @@ function setCookie(name, value, options = {}) {
|
|||
...options
|
||||
};
|
||||
|
||||
if (options.expires && options.expires.toUTCString) {
|
||||
if (options.expires instanceof Date) {
|
||||
options.expires = options.expires.toUTCString();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ function setCookie(name, value, options = {}) {
|
|||
...options
|
||||
};
|
||||
|
||||
if (options.expires.toUTCString) {
|
||||
if (options.expires instanceof Date) {
|
||||
options.expires = options.expires.toUTCString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue