MCPcopy
hub / github.com/reisxd/TizenTube / configRead

Function configRead

mods/config.js:23–35  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

21}
22
23export function configRead(key) {
24 if (localConfig[key] === undefined) {
25 console.warn(
26 'Populating key',
27 key,
28 'with default value',
29 defaultConfig[key]
30 );
31 localConfig[key] = defaultConfig[key];
32 }
33
34 return localConfig[key];
35}
36
37export function configWrite(key, value) {
38 console.info('Setting key', key, 'to', value);

Callers 5

ui.jsFile · 0.90
adblock.jsFile · 0.90
sponsorblock.jsFile · 0.90
speedUI.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected