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

Function fire

src/background/utils/events.js:20–27  ·  view source on GitHub ↗
(type, data)

Source from the content-addressed store, hash-verified

18 }
19 }
20 function fire(type, data) {
21 const list = events[type];
22 if (list) {
23 list.forEach((func) => {
24 func(data, type);
25 });
26 }
27 }
28}

Callers 2

setFunction · 0.70
removeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected