We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5eccdb0 commit ffbaf0eCopy full SHA for ffbaf0e
src/helpers/focusManager.js
@@ -12,13 +12,14 @@ export function resetState() {
12
13
/* istanbul ignore next */
14
export function log() {
15
- if (process.env.NODE_ENV === "production") return;
16
- console.log("focusManager ----------");
17
- focusLaterElements.forEach(f => {
18
- const check = f || {};
19
- console.log(check.nodeName, check.className, check.id);
20
- });
21
- 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 ----------");
22
+ }
23
}
24
/* eslint-enable no-console */
25
0 commit comments