MCPcopy Create free account
hub / github.com/anonymousRAID/OSINT-Mapping-Tool / readConfigFile

Function readConfigFile

src/utils/appConfig.js:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27export async function readConfigFile() {
28 try {
29 const res = await fetch(CONFIG_PATH, { cache: 'no-store' });
30 if (!res.ok) return null;
31 const json = await res.json();
32 return json && typeof json === 'object' ? json : null;
33 } catch {
34 return null;
35 }
36}
37
38function mergeConfigs(...sources) {
39 const out = {};

Callers 5

clearAllSavedDataFunction · 0.90
clearGoogleMapsApiKeyFunction · 0.90
setGoogleMapsMapIdFunction · 0.90
clearGoogleMapsMapIdFunction · 0.90
loadAppConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected