Skip to content

Use native AbortController when possible. #24

@Gozala

Description

@Gozala

This library uses browser field of package.json in order to avoid including a shim and uses own implementation otherwise. That however creates problems when used in Electron (main process) because there it loads a own implementation which native APIs like fetch reject with error like:

TypeError: Failed to execute 'fetch' on 'Window': member signal is not of type AbortSignal.

It would be nice if implementation still checked for presence of native AbortSignal just in case it exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions