i apparently can't type

This commit is contained in:
Jacob Levine 2019-02-09 12:17:47 -06:00
parent 95eab24247
commit 19a9995875

View File

@ -25,18 +25,18 @@ window.onload = function() {
firebase.initializeApp(config); firebase.initializeApp(config);
user = firebase.auth().currentUser user = firebase.auth().currentUser
setTimeout(function() { setTimeout(function() {
if (user != null) { if (user != null) {
if (user.displayName != null) { if (user.displayName != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName; document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
} else if (user.email != null) { } else if (user.email != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.email; document.getElementById('status').innerHTML = "You are signed in as: " + user.email;
} else if (user.phoneNumber != null) { } else if (user.phoneNumber != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.phoneNumber; document.getElementById('status').innerHTML = "You are signed in as: " + user.phoneNumber;
} else {
document.getElementById('status').innerHTML = "You are signed in.";
}
} else { } else {
window.location.replace('../'); document.getElementById('status').innerHTML = "You are signed in.";
}, 10) }
} } else {
window.location.replace('../');
}
}, 10)
} }