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

feat: access missing navigator properties #539

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

franpeza
Copy link
Contributor

@franpeza franpeza commented Jan 24, 2024

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests

Description

Some third party integration we have tries to access a navigator's property that is defined in the top-level navigator (Navigator) instance but not in the worker navigator (WorkerNavigator).

In my case the properties are javaEnabled and cookieEnabled.

This should fix #414 and #270

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 Jan 24, 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 Jan 24, 2024 4:18pm

@franpeza franpeza marked this pull request as ready for review January 24, 2024 15:00
@franpeza franpeza marked this pull request as draft January 24, 2024 16:05
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 @franpeza you are amazing 💪

@gioboa gioboa changed the title fix: access missing navigator properties feat: access missing navigator properties Jan 24, 2024
@gioboa gioboa merged commit 486b5a9 into QwikDev:main Jan 24, 2024
13 of 14 checks passed
@gioboa
Copy link
Member

gioboa commented Jan 24, 2024

@franpeza Which integrations are you using?
Can you share a basic example of that pls?

@franpeza franpeza deleted the fix-navigator branch January 25, 2024 14:59
@franpeza
Copy link
Contributor Author

@gioboa in the project I collaborate we are using it with GTM integration that handles GA4 and some other third parties services. It is used mainly for ads.

@gioboa
Copy link
Member

gioboa commented Jan 26, 2024

Nice, do you think we can mention them?
This is useful b/c we can say: "hey, these third party services are working with Partytown"

@gioboa gioboa mentioned this pull request Jan 30, 2024
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.

[🐞] window.navigator.cookieEnabled returns undefined
2 participants