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

Function pause

src/inject/dynamic-theme/style-manager.ts:487–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

485 const sheetChangeWatcher = createSheetWatcher(element, safeGetSheetRules, update, isAsyncCancelled);
486
487 function pause() {
488 observer.disconnect();
489 cancelAsyncOperations = true;
490 corsCopyPositionWatcher && corsCopyPositionWatcher.stop();
491 syncStylePositionWatcher && syncStylePositionWatcher.stop();
492 sheetChangeWatcher.stop();
493 }
494
495 function destroy() {
496 pause();

Callers 1

destroyFunction · 0.85

Calls 2

disconnectMethod · 0.80
stopMethod · 0.65

Tested by

no test coverage detected