vendredi 26 janvier 2018

Element couldn't change inside firebase auth()

i have a web app that using firebase library. i have done import all firebase library, now i have a.js,

firebase.auth().onAuthStateChanged(function(user){
    if(user){
}
else{
$('#profileTabPicture').html('<img class="profilePictureId" src="img/pp.webp" alt="Profile Picture"/>')
$('#bgBlur').hide().fadeIn();
$('.bgLoader').show().fadeOut();
console.log('blabla');}
});

The console.log is running by printing that in devTools, but why the 3 above console.log not running... thanks..




Aucun commentaire:

Enregistrer un commentaire