mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +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
|
||||
firebase.initializeApp(config);
|
||||
setTimeout(function(){
|
||||
user = firebase.auth().currentUser
|
||||
promise2 = new Promise(function(resolve,reject){
|
||||
setTimeout(function(){
|
||||
user = firebase.auth().currentUser
|
||||
resolve(user)
|
||||
},10)
|
||||
});
|
||||
promise2.then(function(user){
|
||||
resolve(user)
|
||||
},10)
|
||||
|
||||
})
|
||||
});
|
||||
promise1.then(function(user) {
|
||||
if (user != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user