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

Function removeManager

src/inject/dynamic-theme/index.ts:425–431  ·  view source on GitHub ↗
(element: StyleElement)

Source from the content-addressed store, hash-verified

423}
424
425function removeManager(element: StyleElement) {
426 const manager = styleManagers.get(element);
427 if (manager) {
428 manager.destroy();
429 styleManagers.delete(element);
430 }
431}
432
433const throttledRenderAllStyles = throttle((callback?: () => void) => {
434 styleManagers.forEach((manager) => manager.render(theme!, ignoredImageAnalysisSelectors));

Callers 2

watchForUpdatesFunction · 0.85
removeDynamicThemeFunction · 0.85

Calls 2

getMethod · 0.65
destroyMethod · 0.65

Tested by

no test coverage detected