Skip to content

guard cross-fetch by platform #246

@joshmsamuels

Description

@joshmsamuels

This SDK uses browser-or-node to set the user-agent based on the javascript environment being run, however the same logic is not applied to cross-fetch. From my understanding that is because cross-fetch should be platform agnostic.

It looks like cross-fetch tries using XmlHttpRequest to make API calls when the environment is set to web worker

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