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

Function _getResolvedTheme

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

Source from the content-addressed store, hash-verified

1361 };
1362
1363 let _getResolvedTheme = () => {
1364 let themeKey = String(formatOptions.JSON_FORMAT_THEME || 0);
1365 if (themeKey === '0' && _shouldUseAutoDarkTheme()) {
1366 themeKey = '3';
1367 }
1368 return SKIN_THEME[themeKey] || SKIN_THEME[0];
1369 };
1370
1371 let _bindDarkModePreferenceListener = () => {
1372 if (darkModePreferenceBound || !window.matchMedia) {

Callers 1

_didFormatFunction · 0.85

Calls 1

_shouldUseAutoDarkThemeFunction · 0.85

Tested by

no test coverage detected