Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make browser detection more reliable (floating-ui#768)
Some implementations of server-side rendering support `window` and `document` objects but `navigator` could be undefined. To prevent error-prone behavior we should check the existence of `navigator` object in global scope.
- Loading branch information