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
290110274b
commit
2c9951d2c9
@ -13,25 +13,18 @@ function closeNav() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
var promise1 = new Promise(function(resolve, reject) {
|
document.getElementById('sideload').style.display = 'block';
|
||||||
document.getElementById('sideload').style.display = 'block';
|
var config = {
|
||||||
var config = {
|
apiKey: "(insert the TitanScout Api Key Here)",
|
||||||
apiKey: "(insert the TitanScout Api Key Here)",
|
authDomain: "titanscoutandroid.firebaseapp.com",
|
||||||
authDomain: "titanscoutandroid.firebaseapp.com",
|
databaseURL: "https://titanscoutandroid.firebaseio.com",
|
||||||
databaseURL: "https://titanscoutandroid.firebaseio.com",
|
projectId: "titanscoutandroid",
|
||||||
projectId: "titanscoutandroid",
|
storageBucket: "titanscoutandroid.appspot.com",
|
||||||
storageBucket: "titanscoutandroid.appspot.com",
|
messagingSenderId: "1097635313476"
|
||||||
messagingSenderId: "1097635313476"
|
};
|
||||||
};
|
//eventually find a less-jank way to do this tho
|
||||||
//eventually find a less-jank way to do this tho
|
firebase.initializeApp(config);
|
||||||
firebase.initializeApp(config);
|
firebase.auth().onAuthStateChanged(function(user) {
|
||||||
setTimeout(function(){
|
|
||||||
user = firebase.auth().currentUser
|
|
||||||
resolve(user)
|
|
||||||
},10)
|
|
||||||
|
|
||||||
});
|
|
||||||
promise1.then(function(user) {
|
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user