Spaces:
Runtime error
Runtime error
File size: 377 Bytes
6544822 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | const STORAGE_KEY = 'pipecount-debug-confidence-labels'
export function loadShowConfidenceLabels(): boolean {
try {
return localStorage.getItem(STORAGE_KEY) === '1'
} catch {
return false
}
}
export function saveShowConfidenceLabels(enabled: boolean): void {
try {
localStorage.setItem(STORAGE_KEY, enabled ? '1' : '0')
} catch {
/* ignore */
}
}
|