Merge pull request #3667 from chrisgarrity/patch-cookie

Really delete the cookie
This commit is contained in:
picklesrus 2020-01-30 09:54:35 -05:00 committed by GitHub
commit bf37a76355
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ const jar = require('./lib/jar');
} else {
// delete the old cookie (just hostname) by setting it to null and expiring in the past
/* 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 */
// create the new cookie
let opts = {};