MCPcopy
hub / github.com/darkreader/darkreader / onDarkThemeDetected

Function onDarkThemeDetected

src/inject/index.ts:204–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204function onDarkThemeDetected() {
205 writeEnabledForHost(false);
206 sendMessage({type: MessageTypeCStoBG.DARK_THEME_DETECTED});
207}
208
209// Thunderbird does not have "tabs", and emails aren't 'frozen' or 'cached'.
210// And will currently error: `Promise rejected after context unloaded: Actor 'Conduits' destroyed before query 'RuntimeMessage' was resolved`

Callers 1

onMessageFunction · 0.85

Calls 2

writeEnabledForHostFunction · 0.90
sendMessageFunction · 0.70

Tested by

no test coverage detected