Skip to content

Commit

Permalink
Remove console.log in production
Browse files Browse the repository at this point in the history
  • Loading branch information
david-tejada committed May 5, 2022
1 parent c4d95df commit e9c1166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"import/extensions": [
2,
"never"
]
],
"node/prefer-global/process": "off"
}
},
"prettier": {
Expand Down
8 changes: 5 additions & 3 deletions src/content/hints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export async function displayHints(intersectors: Intersector[]) {
intersector.hintText = undefined;
}

console.log(intersectors);

const hints = intersectors.filter((intersector) => {
return (
intersector.clickableType &&
Expand All @@ -43,8 +41,12 @@ export async function displayHints(intersectors: Intersector[]) {
hintsContainer.append(hint.hintElement);
}

console.log(hints);
document.body.append(hintsContainer);

if (process.env["NODE_ENV"] !== "production") {
console.log("intersectors:", intersectors);
console.log("hints", hints);
}
}, 300);
}
}

0 comments on commit e9c1166

Please sign in to comment.