Merge pull request #1534 from TomSssM/patch-1
fix a minor bug in the example
This commit is contained in:
commit
d4eaaf4ce5
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ function setCookie(name, value, options = {}) {
|
|||
...options
|
||||
};
|
||||
|
||||
if (options.expires.toUTCString) {
|
||||
if (options.expires && options.expires.toUTCString) {
|
||||
options.expires = options.expires.toUTCString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue