diff --git a/package.json b/package.json index 337431ef..bc3710b4 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "import/extensions": [ 2, "never" - ] + ], + "node/prefer-global/process": "off" } }, "prettier": { diff --git a/src/content/hints.ts b/src/content/hints.ts index 2144606d..e4e78ff9 100644 --- a/src/content/hints.ts +++ b/src/content/hints.ts @@ -23,8 +23,6 @@ export async function displayHints(intersectors: Intersector[]) { intersector.hintText = undefined; } - console.log(intersectors); - const hints = intersectors.filter((intersector) => { return ( intersector.clickableType && @@ -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); } }