MCPcopy
hub / github.com/xcanwin/KeepChatGPT / getCurrentTheme

Function getCurrentTheme

KeepChatGPT.user.js:1021–1023  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1019 };
1020
1021 const getCurrentTheme = function () {
1022 return $("body").classList.contains("kdark") ? "dark" : "light";
1023 };
1024
1025 const getKcgHueStorageKey = function (theme) {
1026 return theme === "dark" ? "k_kcgHue_dark" : "k_kcgHue_light";

Callers 2

loadMenuFunction · 0.85
applyKcgHueByThemeFunction · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected