Flarum (2.x)
    Preparing search index...

    Variable isHapticSupportedConst

    isHapticSupported: boolean = ...

    Whether the current browser can produce haptic feedback.

    Determined by the presence of the Web Vibration API, so this is true on Chromium-based Android browsers and false on iOS, desktop, and any other browser without it.

    Use this to conditionally show haptic-related UI (e.g. a settings toggle).