MCPcopy
hub / github.com/darkreader/darkreader / cleanFallbackStyle

Function cleanFallbackStyle

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

Source from the content-addressed store, hash-verified

322}
323
324function cleanFallbackStyle() {
325 const fallback = (
326 staticStyleMap.get(document.head)?.get('darkreader--fallback') ||
327 staticStyleMap.get(document)?.get('darkreader--fallback') ||
328 document.querySelector('.darkreader--fallback')
329 );
330 if (fallback) {
331 fallback.textContent = '';
332 }
333}
334
335function createDynamicStyleOverrides() {
336 cancelRendering();

Callers 3

loadingEndFunction · 0.85
onDOMReadyFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected