fixes with countdown

This commit is contained in:
Michael Freno
2025-12-21 15:38:49 -05:00
parent 51bf745039
commit c88df09d47
11 changed files with 50 additions and 55 deletions

View File

@@ -23,16 +23,6 @@ export async function safeFetch(
}
}
/**
* Triggers haptic feedback on mobile devices
* @param duration - Duration in milliseconds (default 50ms for a light tap)
*/
export function hapticFeedback(duration: number = 50) {
if (typeof window !== "undefined" && "vibrate" in navigator) {
navigator.vibrate(duration);
}
}
/**
* Inserts soft hyphens (­) into long words to enable manual hyphenation
* Works with Typewriter component since it uses actual characters