Skip to content

Conversation

@mcprp
Copy link

@mcprp mcprp commented May 8, 2025

  • Add browser environment detection before accessing global.navigator
  • Safeguard userAgent access with optional chaining
  • Prevent TypeErrors during server-side rendering with Node.js 22+

- Add browser environment detection before accessing global.navigator
- Safeguard userAgent access with optional chaining
- Prevent TypeErrors during server-side rendering with Node.js 22+
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.

1 participant