mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-27 21:31:21 -04:00
Really delete the cookie
It appears that setting the domain on the cookie prevents it from actually deleting the cookie.
This commit is contained in:
parent
f9b85c7884
commit
70cef7335b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const jar = require('./lib/jar');
|
||||||
} else {
|
} else {
|
||||||
// delete the old cookie (just hostname) by setting it to null and expiring in the past
|
// delete the old cookie (just hostname) by setting it to null and expiring in the past
|
||||||
/* eslint-disable max-len */
|
/* eslint-disable max-len */
|
||||||
document.cookie = `scratchlanguage=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${window.location.hostname}`;
|
document.cookie = `scratchlanguage=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;
|
||||||
/* eslint-enable max-len */
|
/* eslint-enable max-len */
|
||||||
// create the new cookie
|
// create the new cookie
|
||||||
let opts = {};
|
let opts = {};
|
||||||
|
|
Loading…
Add table
Reference in a new issue