This commit is contained in:
Georg Reisinger
2019-03-16 18:51:39 +01:00
parent 958a1040af
commit 631e7103d0
2 changed files with 4 additions and 5 deletions

View File

@ -22,7 +22,7 @@ function checkAuth() {
console.error("Get id token client error: ", error)
});
} catch {
console.error("checkAuth error: ")
console.error("checkAuth error: ");
}
// document.getElementById("loginbutton").style.display = "none";
@ -31,8 +31,7 @@ function checkAuth() {
// document.getElementById("loginbutton").style.display = "block";
console.log("Check Auth error", user)
}
})
var user = firebase.auth().currentUser;
});
}
window.onload = function () {
checkAuth();