mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
provide a default opts
if it’s undefined
This commit is contained in:
parent
4175c119d2
commit
9a3358b35c
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ var Jar = {
|
|||
});
|
||||
},
|
||||
set: function (name, value, opts) {
|
||||
opts = opts || {};
|
||||
defaults(opts, {
|
||||
expires: new Date(new Date().setYear(new Date().getFullYear() + 1))
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue