()
| 120 | } |
| 121 | |
| 122 | export function loadDisplaySettings(): DisplaySettings { |
| 123 | try { |
| 124 | const raw = localStorage.getItem(DISPLAY_STORAGE_KEY); |
| 125 | if (raw) return clampDisplaySettings(JSON.parse(raw)); |
| 126 | } catch { /* ignore */ } |
| 127 | return DEFAULT_DISPLAY_SETTINGS; |
| 128 | } |
| 129 | |
| 130 | export function saveDisplaySettings(settings: DisplaySettings) { |
| 131 | try { |
no test coverage detected