Skip to content

Commit f599c70

Browse files
authored
Merge 8c7a241 into 4b5a82e
2 parents 4b5a82e + 8c7a241 commit f599c70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/util/src/environment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export function isNodeSdk(): boolean {
138138
export function isSafari(): boolean {
139139
return (
140140
!isNode() &&
141+
!!navigator.userAgent &&
141142
navigator.userAgent.includes('Safari') &&
142143
!navigator.userAgent.includes('Chrome')
143144
);

0 commit comments

Comments
 (0)