Skip to content

Commit

Permalink
fix: show user email on homepage if name not present
Browse files Browse the repository at this point in the history
  • Loading branch information
shatgupt committed Sep 17, 2018
1 parent 30d34ac commit accea95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3 class="text-center"><a href="screenshots.html" title="More Screenshots">Scre
$('#user-name').textContent = user.name || 'Dashboard'
Array.from($$('.hide-if-no-user')).forEach(el => el.classList.remove('hide-if-no-user'))

actionMsg.textContent = user.name ? `You are signed in as ${user.name}` : ''
actionMsg.textContent = `You are signed in as ${user.name || user.email}`
$('#auth-buttons').classList.add('hide')
} else if (location.search.indexOf('ext-install=1') !== -1) {
actionMsg.innerHTML = 'Great! Now that you have installed the RunMyCode Online extension, authenticate below to start running code directly from <a href="faq.html#supported-sites">supported sites</a>. <a href="faq.html#auth">Why authenticate?</a>'
Expand Down

0 comments on commit accea95

Please sign in to comment.