diff --git a/packages/util/src/environment.ts b/packages/util/src/environment.ts index 7beb40efded..9e54d228125 100644 --- a/packages/util/src/environment.ts +++ b/packages/util/src/environment.ts @@ -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') );