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

Fix path resolution for cross-origin assets #1141

Merged
merged 1 commit into from
Jul 29, 2020
Merged

Conversation

texodus
Copy link
Member

@texodus texodus commented Jul 29, 2020

Updates Perspective's cross-origin Web Worker and Wasm loading logic to use document.currentScript. In the before times, the long-long ago, we supported a browser called Internet Explorer 8, which led to some highly questionable logic for determining the path of these assets, throwing an Error and parsing the stack trace ...

I expect this will fix issues #1139 and possibly #1128 - but I can't say for sure until 0.5.3 is released, as the specific interplay of this issue was only detected due to how unpkg.com resolves browser alias fields in package.json.

@texodus
Copy link
Member Author

texodus commented Jul 29, 2020

Thanks @sc1f for discovering the root cause for this!

@texodus texodus merged commit 55b8335 into master Jul 29, 2020
@texodus texodus deleted the cross-origin-bug branch July 29, 2020 05:40
@texodus texodus added the bug Concrete, reproducible bugs label Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants