Skip to content

navigator is not defined on older Workers compat date #9

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

Closed
Cherry opened this issue Jan 2, 2023 · 0 comments · Fixed by #11 · May be fixed by #12
Closed

navigator is not defined on older Workers compat date #9

Cherry opened this issue Jan 2, 2023 · 0 comments · Fixed by #11 · May be fixed by #12

Comments

@Cherry
Copy link
Contributor

Cherry commented Jan 2, 2023

If your worker has a compat date prior to when Global navigator was introduced (2022-03-21), it throws the following error:

ReferenceError: navigator is not defined

Defaulting to Unknown or something in this case would probably be ideal.

@Cherry Cherry changed the title ReferenceError: navigator is not defined navigator is not defined on older Workers compat date Jan 2, 2023
@WalshyDev WalshyDev linked a pull request Jan 3, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant