mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 01:59:08 +00:00
i apparently can't type
This commit is contained in:
parent
95eab24247
commit
19a9995875
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user