[crashlytics][ios] Fix a couple of minor issues

This commit is contained in:
Chris Bianca
2017-12-15 17:04:11 +00:00
parent 865944d9a9
commit c8d82207f4
2 changed files with 11 additions and 7 deletions

View File

@@ -238,7 +238,11 @@ class FirebaseCore {
// default to the 'DEFAULT' app if no arg provided - will throw an error
// if default app not initialized
else if (!_app) _app = this.app(INTERNALS.STRINGS.DEFAULT_APP_NAME);
return INTERNALS.APPS[_app._name][namespace](_app);
const firebaseApp = INTERNALS.APPS[_app._name];
if (namespace === 'crashlytics') {
return firebaseApp.fabric[namespace](_app);
}
return firebaseApp[namespace](_app);
};
return Object.assign(getNamespace, statics, {