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

Function cleanUp

src/inject/dynamic-theme/stylesheet-proxy.ts:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 const cleaners: Array<() => void> = [];
10
11 function cleanUp() {
12 cleaners.forEach((clean) => clean());
13 cleaners.splice(0);
14 }
15
16 function documentEventListener(type: string, listener: (e: CustomEvent) => void, options?: AddEventListenerOptions) {
17 document.addEventListener(type, listener as EventListener, options);

Callers

nothing calls this directly

Calls 1

cleanFunction · 0.85

Tested by

no test coverage detected