Skip to content

Commit

Permalink
Wrap NODE_ENV conditional code in block
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazh authored and diasbruno committed Oct 28, 2021
1 parent 22e80e7 commit f5d404c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/helpers/ariaAppHider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit f5d404c

Please sign in to comment.