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

Source map URL should be resolved relative to resource #10

Closed
jscheid opened this issue Mar 3, 2015 · 1 comment
Closed

Source map URL should be resolved relative to resource #10

jscheid opened this issue Mar 3, 2015 · 1 comment

Comments

@jscheid
Copy link

jscheid commented Mar 3, 2015

Hi,

Suppose my location.href is http://localhost/foo/ and I'm loading /bundle.js which references a source map bundle.js.map using just this relative path (e.g. just the filename).

stacktrace-gps currently resolves the sourcemap URL relative to the current page (implicitly, from what I can see) and will therefore try to load http://localhost/foo/bundle.js.map. However, the URL should be resolved relative to the resource, i.e. to http://localhost/bundle.js.map.

@eriwen
Copy link
Member

eriwen commented Aug 8, 2015

Fixed by 2004283 🌟

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

No branches or pull requests

2 participants