try to delete old cookies too

This commit is contained in:
Sean Yesmunt 2019-11-22 10:32:25 -05:00
parent 1fb7229aa1
commit 600792884e

View file

@ -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) => {