add domain to deleteCookie function

This commit is contained in:
Sean Yesmunt 2019-11-22 10:06:23 -05:00
parent ed1f8e75cb
commit 1fb7229aa1

View file

@ -33,7 +33,7 @@ function getCookie(name: string) {
}
function deleteCookie(name: string) {
document.cookie = name + '=; Max-Age=-99999999; path=/;';
document.cookie = name + `=; Max-Age=-99999999; domain=.${DOMAIN}; path=/;`;
}
export const setSavedPassword = (value?: string, saveToDisk: boolean) => {