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);
user = firebase.auth().currentUser
setTimeout(function() {
if (user != null) {
if (user.displayName != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
} else if (user.email != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.email;
} else if (user.phoneNumber != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.phoneNumber;
} else {
document.getElementById('status').innerHTML = "You are signed in.";
}
if (user != null) {
if (user.displayName != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
} else if (user.email != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.email;
} else if (user.phoneNumber != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.phoneNumber;
} else {
window.location.replace('../');
}, 10)
}
document.getElementById('status').innerHTML = "You are signed in.";
}
} else {
window.location.replace('../');
}
}, 10)
}