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

Function stopWatchingForUpdates

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

Source from the content-addressed store, hash-verified

537}
538
539function stopWatchingForUpdates() {
540 styleManagers.forEach((manager) => manager.pause());
541 stopStylePositionWatchers();
542 stopWatchingForStyleChanges();
543 stopWatchingForInlineStyles();
544 removeDOMReadyListener(onDOMReady);
545 cleanReadyStateCompleteListeners();
546}
547
548let metaObserver: MutationObserver;
549let headObserver: MutationObserver | null = null;

Callers 1

cleanDynamicThemeCacheFunction · 0.85

Calls 6

removeDOMReadyListenerFunction · 0.90
pauseMethod · 0.80

Tested by

no test coverage detected