File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 32
32
"publish:local" : " yarn rebuild && yarn pack"
33
33
},
34
34
"devDependencies" : {
35
- "@types/node" : " ^12.0.0" ,
36
35
"@types/react" : " ^16.9.43" ,
37
36
"@types/react-dom" : " ^16.9.8" ,
38
37
"concurrently" : " ^5.2.0" ,
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ export const useDetectAdBlock = () => {
11
11
mode : "no-cors" ,
12
12
cache : "no-store" ,
13
13
} )
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
+ // })
19
19
. 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
+ // }
23
23
setAdBlockDetected ( true ) ;
24
24
} ) ;
25
25
} , [ ] ) ;
You can’t perform that action at this time.
0 commit comments