Skip to content

navigator.vibrate is typed as always being defined, but is undefined in Safari #1486

@FuXiuHeng

Description

@FuXiuHeng

The navigator.vibrate API is currently always defined. However, according to the navigator.vibrate MDN docs, this is currently not supported in Safari:

Screen Shot 2023-01-31 at 1 58 36 pm

I'm proposing to update the Navigator interface to:

interface Navigator {
    // Proposed change from being required to being optional
    vibrate?: (pattern: Iterable<number>) => boolean;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions