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