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

Function stopStylePositionWatchers

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

Source from the content-addressed store, hash-verified

85}
86
87function stopStylePositionWatchers() {
88 forEach(nodePositionWatchers.values(), (watcher) => watcher.stop());
89 nodePositionWatchers.clear();
90}
91
92function injectStaticStyle(style: HTMLStyleElement, prevNode: Node | null, watchAlias: string, callback?: () => void) {
93 const mode = getStyleInjectionMode();

Callers 1

stopWatchingForUpdatesFunction · 0.85

Calls 3

forEachFunction · 0.90
stopMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected