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, 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();