try to delete old cookies too
This commit is contained in:
parent
1fb7229aa1
commit
600792884e
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@ function getCookie(name: string) {
|
||||||
|
|
||||||
function deleteCookie(name: string) {
|
function deleteCookie(name: string) {
|
||||||
document.cookie = name + `=; Max-Age=-99999999; domain=.${DOMAIN}; path=/;`;
|
document.cookie = name + `=; Max-Age=-99999999; domain=.${DOMAIN}; path=/;`;
|
||||||
|
|
||||||
|
// Legacy
|
||||||
|
// Adding this here to delete any old cookies before we switched to . + DOMAIN
|
||||||
|
// Remove this if you see it after July 1st, 2020
|
||||||
|
document.cookie = name + `=; Max-Age=-99999999; domain=${DOMAIN}; path=/;`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const setSavedPassword = (value?: string, saveToDisk: boolean) => {
|
export const setSavedPassword = (value?: string, saveToDisk: boolean) => {
|
||||||
|
|
Loading…
Reference in a new issue