Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
bf37a763
Unverified
Commit
bf37a763
authored
Jan 30, 2020
by
picklesrus
Committed by
GitHub
Jan 30, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3667 from chrisgarrity/patch-cookie
Really delete the cookie
parents
f9b85c78
70cef733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/init.js
src/init.js
+1
-1
No files found.
src/init.js
View file @
bf37a763
...
@@ -21,7 +21,7 @@ const jar = require('./lib/jar');
...
@@ -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
=
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment