diff options
-rw-r--r-- | remoting/webapp/me2mom/remoting.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/remoting/webapp/me2mom/remoting.js b/remoting/webapp/me2mom/remoting.js index 695bb84..b220502 100644 --- a/remoting/webapp/me2mom/remoting.js +++ b/remoting/webapp/me2mom/remoting.js @@ -101,9 +101,7 @@ function updateAuthStatus_() { document.getElementById('oauth2-clear-button').hidden = !oauthValid; var loginName = getEmail(); - if (loginName) { - document.getElementById('current-email').innerText = loginName; - } + document.getElementById('current-email').innerText = loginName || ''; var disableControls = !(loginName && oauthValid); var controlPanel = document.getElementById('control-panel'); @@ -141,6 +139,7 @@ function exchangedCodeForToken_() { remoting.clearOAuth2 = function() { remoting.oauth2.clear(); + window.localStorage.removeItem(KEY_EMAIL_); updateAuthStatus_(); } |