I\'ve followed instructions here and whenever I add
if (!firebase.apps.length) { firebase.initializeApp(firebaseConfig); }
, it seems to resta