diff --git a/src/lib/helpers.ts b/src/lib/helpers.ts index 22e22c97..d940d1b4 100644 --- a/src/lib/helpers.ts +++ b/src/lib/helpers.ts @@ -14,7 +14,8 @@ export function uuid() { }) } -export const isBrowser = () => typeof document !== 'undefined' +export const isBrowser = () => + typeof window !== 'undefined' && typeof document !== 'undefined' const localStorageWriteTests = { tested: false,