* Save progress to localStorage
()
| 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 |