Skip to content

Commit 1c287af

Browse files
committed
🐛 web-ui not null node version
1 parent b117b26 commit 1c287af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/tools/globalObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ export const isBrowserEnvironment = 'document' in globalObject
5252
export const isWorkerEnvironment = 'WorkerGlobalScope' in globalObject
5353
export const isNodeEnvironment =
5454
// @ts-expect-error for Node.js-specific globals that are not present in browser environments
55-
typeof process !== 'undefined' && process.versions !== null && process.versions.node !== null
55+
typeof process !== 'undefined' && process.versions !== null && !!process.versions.node

0 commit comments

Comments
 (0)