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

CSS XHR error #155

Closed
steelraiden opened this issue Mar 11, 2021 · 2 comments
Closed

CSS XHR error #155

steelraiden opened this issue Mar 11, 2021 · 2 comments
Labels

Comments

@steelraiden
Copy link

Apparently, this happens when a css file is empty

image

in function getUrls(urls) {

if (xhr.status === 200 && isValidCss(xhr.responseText)) {
  onSuccess(xhr.responseText, i);
}
else if (xhr.status === 0 && isValidCss(xhr.responseText)) {
  onSuccess(xhr.responseText, i);
}
else {
  onError(xhr, i);
}
@jhildenbiddle
Copy link
Owner

Thanks @steelraiden. Easy fix. I'll try and get this out before EOD.

@jhildenbiddle
Copy link
Owner

@steelraiden --

This issue has been fixed in the fix-155 branch. I'm currently waiting on feedback on #153 I hopes of combining both fixes in the next patch release. If I don't hear back on #153 by EOW, I will release this fix separately.

In the meaning, feel free to test out the fix-155 branch to verify that it addresses your issue.

npm install --save jhildenbiddle/css-vars-ponyfill#fix-155

Thanks!

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

No branches or pull requests

2 participants