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

In service worker environment, globalScope.document.cookie setting will throw #925

Open
jimexist opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jimexist
Copy link

jimexist commented Dec 3, 2024

Expected Behavior

In service worker, globalScope.document.cookie should be checked before accessing it's value.

Current Behavior

It will throw and a console error will be logged

Possible Solution

  • guard against the possibility of undefined in service worker environment

Steps to Reproduce

Environment

  • JS SDK Version:
  • Installation Method:
  • Browser and Version:
@jimexist jimexist added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant