ok this should fix

This commit is contained in:
Jacob Levine 2019-02-09 12:46:20 -06:00
parent f0c0d646b5
commit 807c66dd3a

View File

@ -25,9 +25,10 @@ window.onload = function() {
}; };
firebase.initializeApp(config); firebase.initializeApp(config);
user = firebase.auth().currentUser user = firebase.auth().currentUser
resolve(user) resolve(null)
}); });
promise1.then(function(user) { promise1.then(function(a) {
user=firebase.auth().currentUser
if (user != null) { if (user != null) {
if (user.displayName != null) { if (user.displayName != null) {
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName; document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;