Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ...
  2. import { remoteConfig } from '../lib/firebase';
  3.  
  4. const Index = () => {
  5. ...
  6. if (process.browser) {
  7. remoteConfig
  8. .fetchAndActivate()
  9. .then(() => {
  10. console.log(remoteConfig.getAll());
  11. })
  12. .catch((err) => {
  13. console.error(err);
  14. });
  15. }
  16.  
  17. ...
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement