mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[internals][js] invert namespace check
This commit is contained in:
@@ -55,7 +55,7 @@ export default {
|
||||
InstanceClass: Class<M>
|
||||
): () => FirebaseModule {
|
||||
return (customUrlOrRegion: ?string = null): M => {
|
||||
if (customUrlOrRegion && CUSTOM_URL_OR_REGION_NAMESPACES[namespace]) {
|
||||
if (customUrlOrRegion && !CUSTOM_URL_OR_REGION_NAMESPACES[namespace]) {
|
||||
throw new Error(
|
||||
INTERNALS.STRINGS.ERROR_INIT_SERVICE_URL_OR_REGION_UNSUPPORTED(
|
||||
namespace
|
||||
|
||||
Reference in New Issue
Block a user