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

Function UpdatedValues

src/injected/content/index.js:63–71  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

61 Command: data => bridge.post('Command', data, ids[data.id]),
62 Run: id => Run(id, CONTENT),
63 UpdatedValues(data) {
64 const dataPage = createNullObj();
65 const dataContent = createNullObj();
66 objectKeys(data)::forEach((id) => {
67 (ids[id] === CONTENT ? dataContent : dataPage)[id] = data[id];
68 });
69 if (!isEmpty(dataPage)) bridge.post('UpdatedValues', dataPage);
70 if (!isEmpty(dataContent)) bridge.post('UpdatedValues', dataContent, CONTENT);
71 },
72});
73
74addHandlers({

Callers

nothing calls this directly

Calls 1

isEmptyFunction · 0.90

Tested by

no test coverage detected