File tree 1 file changed +9
-7
lines changed 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,15 @@ export default function FooterWrapper(props) {
19
19
}
20
20
document . body . appendChild ( scriptElement )
21
21
22
- const adsElement = document . createElement ( 'ins' )
23
- adsElement . classList . add ( 'adsbygoogle' )
24
- adsElement . classList . add ( 'adsanchor' )
25
- adsElement . setAttribute ( 'ad-client' , 'ca-pub-7420210265158247' )
26
- adsElement . setAttribute ( 'ad-slot' , '8159529807' )
27
- adsElement . setAttribute ( 'full-width-responsive' , 'true' )
28
- document . body . appendChild ( adsElement )
22
+ if ( window . document . body . clientWidth <= 768 ) {
23
+ const adsElement = document . createElement ( 'ins' )
24
+ adsElement . classList . add ( 'adsbygoogle' )
25
+ adsElement . classList . add ( 'adsanchor' )
26
+ adsElement . setAttribute ( 'ad-client' , 'ca-pub-7420210265158247' )
27
+ adsElement . setAttribute ( 'ad-slot' , '8159529807' )
28
+ adsElement . setAttribute ( 'full-width-responsive' , 'true' )
29
+ document . body . appendChild ( adsElement )
30
+ }
29
31
}
30
32
} , [ ] )
31
33
You can’t perform that action at this time.
0 commit comments