From 0e00c1c6c72a465b196870bc17852a972b1ef306 Mon Sep 17 00:00:00 2001 From: Piotr Jurczynski Date: Thu, 1 Jul 2021 14:34:35 +0200 Subject: [PATCH] fix: node check in chrome browser --- src/internal/plugin/consoleHandlerPlugin/detectedLogStyle.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/internal/plugin/consoleHandlerPlugin/detectedLogStyle.ts b/src/internal/plugin/consoleHandlerPlugin/detectedLogStyle.ts index cf98013..1a20603 100644 --- a/src/internal/plugin/consoleHandlerPlugin/detectedLogStyle.ts +++ b/src/internal/plugin/consoleHandlerPlugin/detectedLogStyle.ts @@ -24,6 +24,7 @@ export const detectedLogStyle: LogStyle = (() => { const isNode = typeof process !== 'undefined' && + typeof process.versions !== 'undefined' && typeof process.versions.node !== 'undefined'; return isNonChromiumEdge || isIOsChrome ? 'none' : isNode ? 'ansi' : 'css';