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: navigator may not exist #35

Merged
merged 1 commit into from
Nov 28, 2024
Merged

fix: navigator may not exist #35

merged 1 commit into from
Nov 28, 2024

Conversation

kingyue737
Copy link
Contributor

I'm using Nuxt. When I turned on SSR, the following error was thrown:

navigator is undefined

Because navigator does not exist on server side. I see others also met this issue #29 when using Uniapp.

This PR checks whether navigator exists before accessing it.

fix #29

Copy link

netlify bot commented Sep 3, 2024

Deploy Preview for grid-layout-plus ready!

Name Link
🔨 Latest commit 298baba
🔍 Latest deploy log https://app.netlify.com/sites/grid-layout-plus/deploys/66d6f7639360e20008439696
😎 Deploy Preview https://deploy-preview-35--grid-layout-plus.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@qmhc qmhc merged commit 2f10dc8 into qmhc:main Nov 28, 2024
8 checks passed
@kingyue737 kingyue737 deleted the patch-1 branch November 28, 2024 02:03
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.

undefined is not an object (evaluating 'navigator.userAgent') __ERROR
2 participants