MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / get

Function get

src/background/sync/base.js:95–99  ·  view source on GitHub ↗
(key, def)

Source from the content-addressed store, hash-verified

93
94function initConfig() {
95 function get(key, def) {
96 const keys = normalizeKeys(key);
97 keys.unshift('sync');
98 return getOption(keys) ?? def;
99 }
100 function set(key, value) {
101 const keys = normalizeKeys(key);
102 keys.unshift('sync');

Callers

nothing calls this directly

Calls 4

normalizeKeysFunction · 0.90
getOptionFunction · 0.90
getKeysFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected