From f5d404cac605f5961b46d665b2be98c2b953b255 Mon Sep 17 00:00:00 2001 From: vlazh Date: Tue, 26 Oct 2021 10:59:17 +0600 Subject: [PATCH] Wrap NODE_ENV conditional code in block --- src/helpers/ariaAppHider.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/helpers/ariaAppHider.js b/src/helpers/ariaAppHider.js index f732e5ae..2620bcad 100644 --- a/src/helpers/ariaAppHider.js +++ b/src/helpers/ariaAppHider.js @@ -22,11 +22,12 @@ export function resetState() { /* istanbul ignore next */ export function log() { - if (process.env.NODE_ENV === "production") return; - const check = globalElement || {}; - console.log("ariaAppHider ----------"); - console.log(check.nodeName, check.className, check.id); - console.log("end ariaAppHider ----------"); + if (process.env.NODE_ENV !== "production") { + var check = globalElement || {}; + console.log("ariaAppHider ----------"); + console.log(check.nodeName, check.className, check.id); + console.log("end ariaAppHider ----------"); + } } /* eslint-enable no-console */