Skip to content

Commit d2caf5a

Browse files
committed
rm logs
1 parent 889f835 commit d2caf5a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

adblock-detect-react/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"publish:local": "yarn rebuild && yarn pack"
3333
},
3434
"devDependencies": {
35-
"@types/node": "^12.0.0",
3635
"@types/react": "^16.9.43",
3736
"@types/react-dom": "^16.9.8",
3837
"concurrently": "^5.2.0",

adblock-detect-react/src/hooks/useDetectAdBlock.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ export const useDetectAdBlock = () => {
1111
mode: "no-cors",
1212
cache: "no-store",
1313
})
14-
.then((res) => {
15-
if (process.env.NODE_ENV !== "production") {
16-
console.log(res);
17-
}
18-
})
14+
// .then((res) => {
15+
// if (process.env.NODE_ENV !== "production") {
16+
// console.log(res);
17+
// }
18+
// })
1919
.catch((err) => {
20-
if (process.env.NODE_ENV !== "production") {
21-
console.log(err);
22-
}
20+
// if (process.env.NODE_ENV !== "production") {
21+
// console.log(err);
22+
// }
2323
setAdBlockDetected(true);
2424
});
2525
}, []);

0 commit comments

Comments
 (0)