Skip to content

Instantly share code, notes, and snippets.

@nparsons08

nparsons08/auth-state.js Secret

Created Feb 26, 2020
Embed
What would you like to do?
function checkAuthState() {
if (!user.value) {
document.getElementById('login-block').style.display = 'grid';
document.getElementsByClassName('message-container')[0].style.display =
'none';
} else {
document.getElementsByClassName('message-container')[0].style.display =
'grid';
document.getElementById('login-block').style.display = 'none';
username = user.value;
initializeClient(username);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.