mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-12 22:26:18 +00:00
even more of a last-ditch effort to make js not multithread everything
This commit is contained in:
parent
0b0d36d660
commit
7d02c6373c
@ -25,11 +25,15 @@ window.onload = function() {
|
|||||||
};
|
};
|
||||||
//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);
|
||||||
setTimeout(function(){
|
promise2 = new Promise(function(resolve,reject){
|
||||||
user = firebase.auth().currentUser
|
setTimeout(function(){
|
||||||
|
user = firebase.auth().currentUser
|
||||||
|
resolve(user)
|
||||||
|
},10)
|
||||||
|
});
|
||||||
|
promise2.then(function(user){
|
||||||
resolve(user)
|
resolve(user)
|
||||||
},10)
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
promise1.then(function(user) {
|
promise1.then(function(user) {
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user