Commit b8a5c6c4 authored by Miguel Rincon's avatar Miguel Rincon

Merge branch 'rs-revert-canary-compat' into 'master'

Revert "Canary toggle compatible with next.gitlab.com"

See merge request gitlab-org/gitlab!80840
parents 01756fc7 bc6d4b52
......@@ -173,12 +173,7 @@ export default class Shortcuts {
e.preventDefault();
const canaryCookieName = 'gitlab_canary';
const currentValue = parseBoolean(getCookie(canaryCookieName));
setCookie(canaryCookieName, (!currentValue).toString(), {
expires: 365,
path: '/',
// next.gitlab.com uses a leading period. See https://gitlab.com/gitlab-org/gitlab/-/issues/350186
domain: `.${window.location.hostname}`,
});
setCookie(canaryCookieName, (!currentValue).toString(), { expires: 365, path: '/' });
refreshCurrentPage();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment