Typo in config docs

This commit is contained in:
Michael Diarmid 2017-05-24 16:58:53 +01:00 committed by GitHub
parent 9f095133c7
commit e1a61bbe9f
1 changed files with 3 additions and 3 deletions

View File

@ -128,13 +128,13 @@ firebase.config().setDefaults({
hasExperimentalFeature: false,
});
firebase.remoteConfig.fetch()
firebase.config().fetch()
.then(() => {
return firebase.remoteConfig().activateFetched();
return firebase.config().activateFetched();
})
.then((activated) => {
if (!activated) console.log('Fetched data not activated');
return firebase.remoteConfig().getValue('hasExperimentalFeature');
return firebase.config().getValue('hasExperimentalFeature');
})
.then((snapshot) => {
const hasExperimentalFeature = snapshot.val();