mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
last-ditch effort to make js not multithread everything
This commit is contained in:
parent
807c66dd3a
commit
0b0d36d660
@ -23,9 +23,13 @@ window.onload = function() {
|
|||||||
storageBucket: "titanscoutandroid.appspot.com",
|
storageBucket: "titanscoutandroid.appspot.com",
|
||||||
messagingSenderId: "1097635313476"
|
messagingSenderId: "1097635313476"
|
||||||
};
|
};
|
||||||
|
//eventually find a less-jank way to do this tho
|
||||||
firebase.initializeApp(config);
|
firebase.initializeApp(config);
|
||||||
user = firebase.auth().currentUser
|
setTimeout(function(){
|
||||||
resolve(user)
|
user = firebase.auth().currentUser
|
||||||
|
resolve(user)
|
||||||
|
},10)
|
||||||
|
|
||||||
});
|
});
|
||||||
promise1.then(function(user) {
|
promise1.then(function(user) {
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
|
@ -23,12 +23,15 @@ window.onload = function() {
|
|||||||
storageBucket: "titanscoutandroid.appspot.com",
|
storageBucket: "titanscoutandroid.appspot.com",
|
||||||
messagingSenderId: "1097635313476"
|
messagingSenderId: "1097635313476"
|
||||||
};
|
};
|
||||||
|
//eventually find a less-jank way to do this tho
|
||||||
firebase.initializeApp(config);
|
firebase.initializeApp(config);
|
||||||
user = firebase.auth().currentUser
|
setTimeout(function(){
|
||||||
resolve(null)
|
user = firebase.auth().currentUser
|
||||||
|
resolve(user)
|
||||||
|
},10)
|
||||||
|
|
||||||
});
|
});
|
||||||
promise1.then(function(a) {
|
promise1.then(function(user) {
|
||||||
user=firebase.auth().currentUser
|
|
||||||
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