MCPcopy Create free account
hub / github.com/zxlie/FeHelper / _prefersColorSchemeDark

Function _prefersColorSchemeDark

apps/json-format/content-script.js:1345–1351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1343 };
1344
1345 let _prefersColorSchemeDark = () => {
1346 try {
1347 return !!(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches);
1348 } catch (e) {
1349 return false;
1350 }
1351 };
1352
1353 let _shouldUseAutoDarkTheme = () => {
1354 if (_isEnabledSetting(formatOptions.ALWAYS_DARK_MODE)) {

Callers 1

_shouldUseAutoDarkThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected