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

fetch with relative string as argument is not resolved correctly #18

Open
jespertheend opened this issue Jul 15, 2024 · 1 comment
Open

Comments

@jespertheend
Copy link

Reduced test case can be found at https://webgpu-inspector-with-string-fetch.glitch.me/

Basically I'm doing:

const response = await fetch("./static/test.txt");
console.log(await response.text());

and instead of resolving relative to the url of the current page, it resolves relative to the script that called fetch.

@brendan-duncan
Copy link
Owner

I pushed a fix for this to git. I'll still continue to test this, and improve the Worker patching, as I get some more free time.

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