Skip to content

Commit

Permalink
rm logs
Browse files Browse the repository at this point in the history
  • Loading branch information
aruniverse committed Mar 2, 2021
1 parent 889f835 commit d2caf5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion adblock-detect-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"publish:local": "yarn rebuild && yarn pack"
},
"devDependencies": {
"@types/node": "^12.0.0",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"concurrently": "^5.2.0",
Expand Down
16 changes: 8 additions & 8 deletions adblock-detect-react/src/hooks/useDetectAdBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export const useDetectAdBlock = () => {
mode: "no-cors",
cache: "no-store",
})
.then((res) => {
if (process.env.NODE_ENV !== "production") {
console.log(res);
}
})
// .then((res) => {
// if (process.env.NODE_ENV !== "production") {
// console.log(res);
// }
// })
.catch((err) => {
if (process.env.NODE_ENV !== "production") {
console.log(err);
}
// if (process.env.NODE_ENV !== "production") {
// console.log(err);
// }
setAdBlockDetected(true);
});
}, []);
Expand Down

0 comments on commit d2caf5a

Please sign in to comment.