From 1fb7229aa1acce34790cafdd32883c30d1340d7f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 22 Nov 2019 10:06:23 -0500 Subject: [PATCH] add domain to deleteCookie function --- ui/util/saved-passwords.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/util/saved-passwords.js b/ui/util/saved-passwords.js index d1cc1cc2a..ea0d41655 100644 --- a/ui/util/saved-passwords.js +++ b/ui/util/saved-passwords.js @@ -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) => {