pipecountapp-dev / frontend /src /lib /debugSettings.ts
Khunndev
Cursor
Add debug mode to show confidence scores inside detection circles.
6544822
Raw History Blame Contribute Delete
377 Bytes
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 */
}
}