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

Function log

src/common/browser.js:180–184  ·  view source on GitHub ↗
(type, args, id, isResponse)

Source from the content-addressed store, hash-verified

178 const { runtime } = browser;
179 const { sendMessage, onMessage } = runtime;
180 const log = (type, args, id, isResponse) => console.info(
181 `${type}Message#%d${isResponse ? ' response' : ''}`,
182 id,
183 ...args,
184 );
185 runtime.sendMessage = (...args) => {
186 counter += 1;
187 const id = counter;

Callers 2

browser.jsFile · 0.70
logErrorFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected