mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
fix: only on production
This commit is contained in:
parent
41be85017f
commit
5ee45f957d
@ -3,7 +3,7 @@ import Logger from '@utils/Logger'
|
|||||||
|
|
||||||
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (true) {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
window.adsbygoogle = window.adsbygoogle || []
|
window.adsbygoogle = window.adsbygoogle || []
|
||||||
try {
|
try {
|
||||||
window.adsbygoogle.push({})
|
window.adsbygoogle.push({})
|
||||||
@ -19,11 +19,11 @@ const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
|||||||
return <div className='py-5'>
|
return <div className='py-5'>
|
||||||
<div
|
<div
|
||||||
className={`z-0 mx-auto w-full text-center text-white ${
|
className={`z-0 mx-auto w-full text-center text-white ${
|
||||||
true ? '' : 'py-12 bg-gray-700'
|
process.env.NODE_ENV === 'production' ? '' : 'py-12 bg-gray-700'
|
||||||
}`}
|
}`}
|
||||||
style={size === 'short' ? { height: '90px' } : { height: '330px', float: 'right' }}
|
style={size === 'short' ? { height: '90px' } : { height: '330px' }}
|
||||||
>
|
>
|
||||||
{true ? (
|
{process.env.NODE_ENV === 'production' ? (
|
||||||
<ins
|
<ins
|
||||||
className='adsbygoogle'
|
className='adsbygoogle'
|
||||||
style={{ display: 'block', width: '100%' }}
|
style={{ display: 'block', width: '100%' }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user