mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-12 17:09:00 +08:00
[core][js] ensure native initialized app names are also upper cased
Thanks @compojoom for the report.
This commit is contained in:
@@ -180,7 +180,11 @@ export default {
|
||||
const app = FirebaseCoreModule.apps[i];
|
||||
const options = Object.assign({}, app);
|
||||
delete options.name;
|
||||
APPS[app.name] = new App(app.name, options, true);
|
||||
APPS[app.name.toUpperCase()] = new App(
|
||||
app.name.toUpperCase(),
|
||||
options,
|
||||
true
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user