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

Function update

src/common/options.js:25–33  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

23 return sendCmdDirectly('SetOptions', { [key]: value });
24 },
25 update(data) {
26 // Keys in `data` may be { flattened.like.this: 'foo' }
27 const expandedData = {};
28 data::forEachEntry(([key, value]) => {
29 objectSet(options, key, value);
30 objectSet(expandedData, key, value);
31 });
32 fire(expandedData);
33 },
34};

Callers 2

hook-setting.jsFile · 0.85
hookSettingFunction · 0.85

Calls 2

objectSetFunction · 0.90
fireFunction · 0.70

Tested by

no test coverage detected