mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
fix: advertisement error at development
This commit is contained in:
parent
0e0dedcaee
commit
a910c68860
@ -1,7 +1,10 @@
|
||||
import { useEffect } from 'react'
|
||||
|
||||
const Advertisement = (): JSX.Element => {
|
||||
useEffect(() => window.adsbygoogle.push({}), [])
|
||||
useEffect(() => {
|
||||
if(process.env.NODE_ENV === 'production') window.adsbygoogle.push({}), []
|
||||
})
|
||||
|
||||
return <div className={`z-0 my-1 mx-auto py-12 w-full text-center text-white ${process.env.NODE_ENV === 'production' ? '' : 'bg-gray-700'}`}>
|
||||
{
|
||||
process.env.NODE_ENV === 'production' ? <ins
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user