MCPcopy Index your code
hub / github.com/zxlie/FeHelper / refreshTheme

Function refreshTheme

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

Source from the content-addressed store, hash-verified

1377 try {
1378 let mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
1379 let refreshTheme = () => {
1380 if (_isEnabledSetting(formatOptions.AUTO_DARK_MODE) && String(formatOptions.JSON_FORMAT_THEME || 0) === '0') {
1381 _didFormat();
1382 }
1383 };
1384
1385 if (mediaQuery.addEventListener) {
1386 mediaQuery.addEventListener('change', refreshTheme);

Callers

nothing calls this directly

Calls 2

_isEnabledSettingFunction · 0.85
_didFormatFunction · 0.85

Tested by

no test coverage detected