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 5eccdb0 commit ffbaf0e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/helpers/focusManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ export function resetState() {

/* istanbul ignore next */
export function log() {
if (process.env.NODE_ENV === "production") return;
console.log("focusManager ----------");
focusLaterElements.forEach(f => {
const check = f || {};
console.log(check.nodeName, check.className, check.id);
});
console.log("end focusManager ----------");
if (process.env.NODE_ENV !== "production") {
console.log("focusManager ----------");
focusLaterElements.forEach(f => {
const check = f || {};
console.log(check.nodeName, check.className, check.id);
});
console.log("end focusManager ----------");
}
}
/* eslint-enable no-console */

Expand Down

0 comments on commit ffbaf0e

Please sign in to comment.