Skip to content

CORS module load fallback does not propagate errors #139

Description

@rphilipp64

When the text plugin decides to load the .js version of a resource (due to useXhr returning false), load errors are not propagated back to error handler of the require call. With the current implementation users of the text plugin are at the mercy of waitSeconds, which will never timeout if set to 0.

The fix seems simple enough: the (delegate) call to req (currently at line 216 of text.js) could simply take onLoad.error as error handler.

Note: while the defect description looks very similar to #133 it is a different issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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