web/SmallDialog: add error haptics to error popups

This commit is contained in:
wukko
2025-03-05 22:19:08 +06:00
parent a2e08b9ccb
commit 7e71701e10
2 changed files with 14 additions and 0 deletions

View File

@@ -33,3 +33,11 @@ export const hapticConfirm = () => {
hapticSwitch();
setTimeout(() => hapticSwitch(), 120);
}
export const hapticError = () => {
if (!canUseHaptics()) return;
hapticSwitch();
setTimeout(() => hapticSwitch(), 120);
setTimeout(() => hapticSwitch(), 240);
}