mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
ok this should fix
This commit is contained in:
parent
390f3d9c4d
commit
f0c0d646b5
@ -13,30 +13,33 @@ function closeNav() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
document.getElementById('sideload').style.display = 'block';
|
var promise1 = new Promise(function(resolve, reject) {
|
||||||
var config = {
|
document.getElementById('sideload').style.display = 'block';
|
||||||
apiKey: "(insert the TitanScout Api Key Here)",
|
var config = {
|
||||||
authDomain: "titanscoutandroid.firebaseapp.com",
|
apiKey: "(insert the TitanScout Api Key Here)",
|
||||||
databaseURL: "https://titanscoutandroid.firebaseio.com",
|
authDomain: "titanscoutandroid.firebaseapp.com",
|
||||||
projectId: "titanscoutandroid",
|
databaseURL: "https://titanscoutandroid.firebaseio.com",
|
||||||
storageBucket: "titanscoutandroid.appspot.com",
|
projectId: "titanscoutandroid",
|
||||||
messagingSenderId: "1097635313476"
|
storageBucket: "titanscoutandroid.appspot.com",
|
||||||
};
|
messagingSenderId: "1097635313476"
|
||||||
firebase.initializeApp(config);
|
};
|
||||||
user = firebase.auth().currentUser
|
firebase.initializeApp(config);
|
||||||
setTimeout(function() {
|
user = firebase.auth().currentUser
|
||||||
if (user != null) {
|
resolve(user)
|
||||||
if (user.displayName != null) {
|
});
|
||||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
|
promise1.then(function(user) {
|
||||||
} else if (user.email != null) {
|
if (user != null) {
|
||||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.email;
|
if (user.displayName != null) {
|
||||||
} else if (user.phoneNumber != null) {
|
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
|
||||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.phoneNumber;
|
} else if (user.email != null) {
|
||||||
} else {
|
document.getElementById('status').innerHTML = "You are signed in as: " + user.email;
|
||||||
document.getElementById('status').innerHTML = "You are signed in.";
|
} else if (user.phoneNumber != null) {
|
||||||
}
|
document.getElementById('status').innerHTML = "You are signed in as: " + user.phoneNumber;
|
||||||
} else {
|
} else {
|
||||||
window.location.replace('../');
|
document.getElementById('status').innerHTML = "You are signed in.";
|
||||||
}, 10)
|
}
|
||||||
}
|
} else {
|
||||||
|
window.location.replace('../');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user