Typo in config docs
This commit is contained in:
parent
9f095133c7
commit
e1a61bbe9f
|
@ -128,13 +128,13 @@ firebase.config().setDefaults({
|
||||||
hasExperimentalFeature: false,
|
hasExperimentalFeature: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
firebase.remoteConfig.fetch()
|
firebase.config().fetch()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return firebase.remoteConfig().activateFetched();
|
return firebase.config().activateFetched();
|
||||||
})
|
})
|
||||||
.then((activated) => {
|
.then((activated) => {
|
||||||
if (!activated) console.log('Fetched data not activated');
|
if (!activated) console.log('Fetched data not activated');
|
||||||
return firebase.remoteConfig().getValue('hasExperimentalFeature');
|
return firebase.config().getValue('hasExperimentalFeature');
|
||||||
})
|
})
|
||||||
.then((snapshot) => {
|
.then((snapshot) => {
|
||||||
const hasExperimentalFeature = snapshot.val();
|
const hasExperimentalFeature = snapshot.val();
|
||||||
|
|
Loading…
Reference in New Issue