mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-31 15:21:34 -04:00
Merge pull request #1553 from mewtaylor/issue/gh-1455
GH-1455: apply path explicitly rather than in `defaults`
This commit is contained in:
commit
129042fce6
1 changed files with 3 additions and 2 deletions
|
@ -71,10 +71,11 @@ var Jar = {
|
|||
});
|
||||
},
|
||||
set: function (name, value, opts) {
|
||||
opts = opts || {};
|
||||
defaults(opts, {
|
||||
expires: new Date(new Date().setYear(new Date().getFullYear() + 1)),
|
||||
path: '/'
|
||||
expires: new Date(new Date().setYear(new Date().getFullYear() + 1))
|
||||
});
|
||||
opts.path = '/';
|
||||
var obj = cookie.serialize(name, value, opts);
|
||||
document.cookie = obj;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue