MCPcopy
hub / github.com/darkreader/darkreader / cleanDynamicThemeCache

Function cleanDynamicThemeCache

src/inject/dynamic-theme/index.ts:930–942  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

928}
929
930export function cleanDynamicThemeCache(): void {
931 variablesStore.clear();
932 parsedURLCache.clear();
933 cleanFilterSelectors();
934 removeDocumentVisibilityListener();
935 cancelRendering();
936 stopWatchingForUpdates();
937 cleanModificationCache();
938 clearColorCache();
939 releaseVariablesSheet();
940 prevTheme = null;
941 prevFixes = null;
942}

Callers 2

cleanupFunction · 0.90
removeDynamicThemeFunction · 0.85

Calls 8

cleanFilterSelectorsFunction · 0.90
cleanModificationCacheFunction · 0.90
clearColorCacheFunction · 0.90
releaseVariablesSheetFunction · 0.90
cancelRenderingFunction · 0.85
stopWatchingForUpdatesFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected