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

Function GetValueStore

src/background/utils/values.js:17–21  ·  view source on GitHub ↗
(id, { tab })

Source from the content-addressed store, hash-verified

15
16addOwnCommands({
17 async GetValueStore(id, { tab }) {
18 const frames = nest(nest(openers, id), tab.id);
19 const values = frames[0] || (frames[0] = await storage[S_VALUE].getOne(id));
20 return values;
21 },
22 /**
23 * @param {Object} data - key can be an id or a uri
24 */

Callers

nothing calls this directly

Calls 2

nestFunction · 0.90
getOneMethod · 0.80

Tested by

no test coverage detected