MCPcopy Create free account
hub / github.com/danja/dogalog / saveProgress

Method saveProgress

src/tutorial/tutorialManager.js:35–44  ·  view source on GitHub ↗

* Save progress to localStorage

()

Source from the content-addressed store, hash-verified

33 * Save progress to localStorage
34 */
35 saveProgress() {
36 try {
37 localStorage.setItem(STORAGE_KEY, JSON.stringify({
38 currentStep: this.currentStep,
39 completed: this.completed
40 }));
41 } catch (e) {
42 console.warn('Failed to save tutorial progress:', e);
43 }
44 }
45
46 /**
47 * Start or restart the tutorial

Callers 6

startMethod · 0.95
nextMethod · 0.95
previousMethod · 0.95
goToStepMethod · 0.95
completeMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected