fix a minor bug in the example
This commit is contained in:
parent
4159a65ea2
commit
83cdcedf81
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