javascript - The page keeps on refreshing when finally logged in -
so me , group trying make website user has sign , login , go new html page , checks whether user logged on or not, we're using firebase , don't know why page keeps on refreshing constantly.. our code below.
firebase.auth().onauthstatechanged(function(user) { if (user) { console.log("logged in"); window.location.href = "home.html"; return false; } else { console.log("not logged in"); } });
Comments
Post a Comment