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