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

Function success

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

Source from the content-addressed store, hash-verified

749
750 const ready = () => {
751 const success = () => {
752 disableConflictingPlugins();
753 document.documentElement.setAttribute('data-darkreader-mode', 'dynamic');
754 document.documentElement.setAttribute('data-darkreader-scheme', theme!.mode ? 'dark' : 'dimmed');
755 createThemeAndWatchForUpdates();
756 };
757
758 const failure = () => {
759 removeDynamicTheme();

Callers 3

checkMatchFunction · 0.85
interceptOldScriptFunction · 0.85
readyFunction · 0.85

Calls 2

Tested by

no test coverage detected