mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
fix: ad causing error
This commit is contained in:
parent
0ae3757b33
commit
99545ad632
@ -5,8 +5,8 @@ const Advertisement = ({ size='short' }:AdvertisementProps): JSX.Element => {
|
||||
if(process.env.NODE_ENV === 'production') {
|
||||
window.adsbygoogle = window.adsbygoogle || []
|
||||
window.adsbygoogle.push({})
|
||||
}
|
||||
})
|
||||
} else console.log('Ads Pushed')
|
||||
}, [])
|
||||
|
||||
return <div className={`z-0 mx-auto w-full text-center text-white ${process.env.NODE_ENV === 'production' ? '' : 'py-12 bg-gray-700'}`} style={size === 'short' ? { height: '90px' } : { height: '330px'}}>
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user