MCPcopy
hub / github.com/tiagozip/cap / setState

Function setState

standalone/public/js/state.js:8–16  ·  view source on GitHub ↗
(stateName)

Source from the content-addressed store, hash-verified

6};
7
8export default function setState(stateName) {
9 for (const [name, element] of Object.entries(states)) {
10 if (name === stateName) {
11 element.style.display = "flex";
12 } else {
13 element.style.display = "none";
14 }
15 }
16}

Callers 5

loadKeyPageFunction · 0.85
index.jsFile · 0.85
openCreateKeyFunction · 0.85
openSettingsFunction · 0.85
initHomepageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected