Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'indexOf' of undefined #567

Closed
dhritzkiv opened this issue May 3, 2016 · 2 comments
Closed

Cannot read property 'indexOf' of undefined #567

dhritzkiv opened this issue May 3, 2016 · 2 comments

Comments

@dhritzkiv
Copy link
Contributor

Problem comes at L904 of /dist/raven. Sometimes xhr requests are made without url.

A simple fix might be:

if (url && url.indexOf(self._globalKey) === -1) {

or

url = url || "";

if (url.indexOf(self._globalKey) === -1) {
@benvinegar
Copy link
Contributor

Thanks @dhritzkiv. Putting together a patch now.

@benvinegar
Copy link
Contributor

Fixed in 3f21412

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

No branches or pull requests

2 participants