Skip to content

fix(xhr): support environments with missing "location"#482

Merged
kettanaito merged 1 commit intomainfrom
fix/xhr-undefined-location
Nov 9, 2023
Merged

fix(xhr): support environments with missing "location"#482
kettanaito merged 1 commit intomainfrom
fix/xhr-undefined-location

Conversation

@kettanaito
Copy link
Copy Markdown
Member

Changes

  • The XHR interceptor will no longer blindly rely on the global location object because it may not be present in the environment that implements XHR (e.g. React Native).

@kettanaito kettanaito merged commit da1cc71 into main Nov 9, 2023
@kettanaito kettanaito deleted the fix/xhr-undefined-location branch November 9, 2023 11:50
@kettanaito
Copy link
Copy Markdown
Member Author

Released: v0.25.11 🎉

This has been released in v0.25.11!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant