MCPcopy Create free account
hub / github.com/EmNudge/watlings / getProgress

Function getProgress

web-build/src/progress.ts:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4let progressCache: Set<string> | null = null;
5
6function getProgress(): Set<string> {
7 if (progressCache) return progressCache;
8 try {
9 const raw = localStorage.getItem(STORAGE_KEY);
10 if (raw) return (progressCache = new Set(JSON.parse(raw)));
11 } catch {
12 // ignore
13 }
14 return (progressCache = new Set());
15}
16
17function saveProgress(completed: Set<string>) {
18 progressCache = completed;

Callers 2

isCompletedFunction · 0.85
markCompletedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected