MCPcopy Index your code
hub / github.com/darkreader/darkreader / dedicatedPath

Function dedicatedPath

src/inject/dynamic-theme/mv3-proxy.ts:45–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45function dedicatedPath() {
46 logInfo(`MV3 proxy injector: ${registeredScriptPath ? 'registered' : 'dedicated'} path setup...`);
47 // TODO: use EventListenerOptions class once it is updated
48 // Note: make sure capture is not set
49 const listenerOptions: any = {
50 passive: true,
51 once: true,
52 };
53 document.addEventListener(EVENT_ARG, dataReceiver, listenerOptions);
54 document.addEventListener(EVENT_DONE, doneReceiver, listenerOptions);
55}
56
57function inject() {
58 if (document.documentElement.dataset[key] !== undefined) {

Callers 1

injectFunction · 0.85

Calls 1

logInfoFunction · 0.90

Tested by

no test coverage detected