MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / loadWidth

Function loadWidth

graph-ui/src/components/GraphTab.tsx:31–37  ·  view source on GitHub ↗
(key: string, fallback: number)

Source from the content-addressed store, hash-verified

29
30/* Persist panel widths */
31function loadWidth(key: string, fallback: number): number {
32 try {
33 const v = localStorage.getItem(key);
34 if (v) return Math.max(150, Math.min(600, parseInt(v, 10)));
35 } catch { /* ignore */ }
36 return fallback;
37}
38function saveWidth(key: string, value: number) {
39 try { localStorage.setItem(key, String(Math.round(value))); } catch { /* ignore */ }
40}

Callers 1

GraphTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected