From 1fc83cb5a8b0238c455cf15730d23cbcf13709b1 Mon Sep 17 00:00:00 2001 From: yunyin Date: Tue, 2 Apr 2024 20:58:15 +0800 Subject: [PATCH] bugfix running without navigator.userAgent --- src/core/env.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/env.ts b/src/core/env.ts index cadec6688..a873873e6 100644 --- a/src/core/env.ts +++ b/src/core/env.ts @@ -39,6 +39,7 @@ else if (typeof document === 'undefined' && typeof self !== 'undefined') { } else if ( typeof navigator === 'undefined' + || typeof navigator.userAgent === 'undefined' // bugfix running without navigator.userAgent || navigator.userAgent.indexOf('Node.js') === 0 ) { // In node