MCPcopy
hub / github.com/opensquilla/opensquilla / set

Function set

src/opensquilla/gateway/static/js/theme.js:22–28  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

20 }
21
22 function set(mode) {
23 if (mode !== 'dark' && mode !== 'light') return;
24 _current = mode;
25 localStorage.setItem(STORAGE_KEY, mode);
26 _apply(mode);
27 _updateToggle();
28 }
29
30 function toggle() {
31 set(_current === 'dark' ? 'light' : 'dark');

Callers 15

toggleFunction · 0.70
_error_textFunction · 0.50
_has_import_errorFunction · 0.50
expand_selectorsFunction · 0.50
profile_allowlistFunction · 0.50
tool_context_for_profileFunction · 0.50
effective_tool_contextFunction · 0.50
apply_tool_policyFunction · 0.50
apply_tool_policy_layerFunction · 0.50

Calls 3

_updateToggleFunction · 0.85
_applyFunction · 0.70
setItemMethod · 0.45