web/haptics: fix disableHaptics setting path
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled

bub fix
This commit is contained in:
wukko 2025-03-07 21:50:02 +06:00
parent a5172b8fb4
commit 95a5a8ae9b
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -3,7 +3,7 @@ import { device } from "$lib/device";
import settings from "$lib/state/settings";
const canUseHaptics = () => {
return device.supports.haptics && !get(settings).appearance.disableHaptics;
return device.supports.haptics && !get(settings).accessibility.disableHaptics;
}
export const hapticSwitch = () => {