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

Function writeLocalConfig

src/utils/appConfig.js:120–125  ·  view source on GitHub ↗
(patch)

Source from the content-addressed store, hash-verified

118}
119
120export function writeLocalConfig(patch) {
121 const current = readLocalStorage() ?? {};
122 const next = mergeConfigs(current, patch);
123 localStorage.setItem(STORAGE_KEY, JSON.stringify(next));
124 return next;
125}
126
127export function clearLocalConfigSection(section) {
128 const current = readLocalStorage() ?? {};

Callers 5

setGoogleMapsApiKeyFunction · 0.90
clearGoogleMapsApiKeyFunction · 0.90
setGoogleMapsMapIdFunction · 0.90
clearGoogleMapsMapIdFunction · 0.90
setMapProviderFunction · 0.90

Calls 2

readLocalStorageFunction · 0.85
mergeConfigsFunction · 0.85

Tested by

no test coverage detected