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

Function cleanImageProcessingCache

src/inject/dynamic-theme/image.ts:403–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401}
402
403export function cleanImageProcessingCache(): void {
404 imageManager && imageManager.stop();
405 removeCanvas();
406 objectURLs.forEach((u) => URL.revokeObjectURL(u));
407 objectURLs.clear();
408 dataURLBlobURLs.forEach((u) => URL.revokeObjectURL(u));
409 dataURLBlobURLs.clear();
410}

Callers 1

cleanModificationCacheFunction · 0.90

Calls 3

removeCanvasFunction · 0.85
stopMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected