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

Function destroy

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

Source from the content-addressed store, hash-verified

493 }
494
495 function destroy() {
496 pause();
497 corsCopies.delete(element);
498 removeNode(syncStyle);
499 loadingEnd();
500 if (rejectorsForLoadingLinks.has(loadingLinkId)) {
501 const reject = rejectorsForLoadingLinks.get(loadingLinkId);
502 rejectorsForLoadingLinks.delete(loadingLinkId);
503 reject && reject();
504 }
505 }
506
507 function watch() {
508 observer.observe(element, observerOptions);

Callers

nothing calls this directly

Calls 5

removeNodeFunction · 0.90
pauseFunction · 0.85
loadingEndFunction · 0.85
hasMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected