From 600792884e81bde40389d4ad8a71f13daf0532d0 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 22 Nov 2019 10:32:25 -0500 Subject: [PATCH] try to delete old cookies too --- ui/util/saved-passwords.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/util/saved-passwords.js b/ui/util/saved-passwords.js index ea0d41655..6247e3bb3 100644 --- a/ui/util/saved-passwords.js +++ b/ui/util/saved-passwords.js @@ -34,6 +34,11 @@ function getCookie(name: string) { function deleteCookie(name: string) { 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) => {