mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
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
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:
parent
a5172b8fb4
commit
95a5a8ae9b
@ -3,7 +3,7 @@ import { device } from "$lib/device";
|
|||||||
import settings from "$lib/state/settings";
|
import settings from "$lib/state/settings";
|
||||||
|
|
||||||
const canUseHaptics = () => {
|
const canUseHaptics = () => {
|
||||||
return device.supports.haptics && !get(settings).appearance.disableHaptics;
|
return device.supports.haptics && !get(settings).accessibility.disableHaptics;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const hapticSwitch = () => {
|
export const hapticSwitch = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user