diff --git a/web/src/components/dialog/SmallDialog.svelte b/web/src/components/dialog/SmallDialog.svelte index bce93be4..6767612c 100644 --- a/web/src/components/dialog/SmallDialog.svelte +++ b/web/src/components/dialog/SmallDialog.svelte @@ -1,4 +1,5 @@ diff --git a/web/src/lib/haptics.ts b/web/src/lib/haptics.ts index 347e81bc..87c87f22 100644 --- a/web/src/lib/haptics.ts +++ b/web/src/lib/haptics.ts @@ -33,3 +33,11 @@ export const hapticConfirm = () => { hapticSwitch(); setTimeout(() => hapticSwitch(), 120); } + +export const hapticError = () => { + if (!canUseHaptics()) return; + + hapticSwitch(); + setTimeout(() => hapticSwitch(), 120); + setTimeout(() => hapticSwitch(), 240); +}