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: (worker-window): polyfill CSSMediaRule - copy from the PR #614 #636

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

AndreAzevedoCoder
Copy link
Contributor

@AndreAzevedoCoder AndreAzevedoCoder commented Nov 3, 2024

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests

Description

This PR is a copy from #614 that PR should go in because third-parties like clarity are still broken
Include polyfill for CSSMediaRule (used by hubspot tracking js)

Use cases and why

error when using clarity:
image

  1. Use Case:
    Hubspot references CSSMediaRule in their JS and it is currently failing because it doesn't exist in worker context.
    We already have the polyfill for CSSStyleSheet and CSSMediaRule has the same interface so the same polyfill should work!

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

Copy link

vercel bot commented Nov 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
partytown ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 3, 2024 5:18pm

@AndreAzevedoCoder
Copy link
Contributor Author

I modified the test on the 9d818eb commit so you can see the error, that observer is making clarity not work, so it doesn´t give an error, so I removed the observer and then clarity actually starts and then you get an error:
Screenshot from 2024-11-03 14-19-30

@AndreAzevedoCoder
Copy link
Contributor Author

AndreAzevedoCoder commented Nov 3, 2024

idk why pnpm: command not found is happening on the pipeline though

@AndreAzevedoCoder AndreAzevedoCoder changed the title fix(worker-window): polyfill CSSMediaRule - copy from the PR #614 fix: (worker-window): polyfill CSSMediaRule - copy from the PR #614 Nov 7, 2024
Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AndreAzevedoCoder for your commitment

@gioboa gioboa merged commit d97b27f into QwikDev:main Nov 15, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants