Skip to content

Commit

Permalink
Use truthy check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jan 19, 2024
1 parent dad17fc commit e38eae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/util/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function isNodeSdk(): boolean {
export function isSafari(): boolean {
return (
!isNode() &&
navigator.userAgent !== undefined &&
navigator.userAgent &&
navigator.userAgent.includes('Safari') &&
!navigator.userAgent.includes('Chrome')
);
Expand Down

0 comments on commit e38eae5

Please sign in to comment.