MCPcopy
hub / github.com/darkreader/darkreader / watchForStyleChanges

Function watchForStyleChanges

src/inject/dynamic-theme/watch/index.ts:12–18  ·  view source on GitHub ↗
(
    currentStyles: StyleElement[],
    update: (styles: ChangedStyles) => void,
    shadowRootDiscovered: (root: ShadowRoot) => void
)

Source from the content-addressed store, hash-verified

10}
11
12export function watchForStyleChanges(
13 currentStyles: StyleElement[],
14 update: (styles: ChangedStyles) => void,
15 shadowRootDiscovered: (root: ShadowRoot) => void
16): void {
17 watchForStylePositions(currentStyles, update, shadowRootDiscovered);
18}
19
20export function stopWatchingForStyleChanges(): void {
21 stopWatchingForStylePositions();

Callers 1

watchForUpdatesFunction · 0.90

Calls 1

watchForStylePositionsFunction · 0.90

Tested by

no test coverage detected