Skip to content

title and text are required, invalid params when empty #179

@KoenWouters

Description

@KoenWouters

In https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share it is not required to add text or title. But when using this polyfill we get an error invalid params.

if (!data.title || typeof data.title !== 'string' || !data.text || typeof data.text !== 'string') {

Looks like this check shouldn't be here.

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