if (!firebase.apps.length) { firebase.initializeApp({}); }else { firebase.app(); // if already initialized, use that one }
if (!firebase.apps.length) {
firebase.initializeApp({});
}else {
firebase.app(); // if already initialized, use that one
}