MCPcopy Create free account
hub / github.com/firebase/quickstart-js / fetchConfig

Function fetchConfig

remote-config/main.ts:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30function fetchConfig() {
31 const welcome_element = document.getElementById('welcome_message')!;
32 welcome_element.innerText = 'loading...';
33 fetchAndActivate(remoteConfig)
34 .then(() => {
35 showWelcomeMessage();
36 })
37 .catch((err) => {
38 console.error(err);
39 });
40}
41
42document.getElementById('fetch-config')!.addEventListener('click', fetchConfig);

Callers

nothing calls this directly

Calls 1

showWelcomeMessageFunction · 0.85

Tested by

no test coverage detected