even more of a last-ditch effort to make js not multithread everything

This commit is contained in:
Jacob Levine 2019-02-09 13:04:12 -06:00
parent 0b0d36d660
commit 7d02c6373c

View File

@ -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) {