Merge pull request #787 from SkysCrystal/tangly1024-main

Update new AdSense code
This commit is contained in:
tangly1024
2023-02-19 10:55:11 +08:00
committed by GitHub

View File

@@ -27,8 +27,8 @@ const CommonScript = () => {
</>)}
{/* GoogleAdsense */}
{BLOG.ADSENSE_GOOGLE_ID && (<script data-ad-client={BLOG.ADSENSE_GOOGLE_ID} async
src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'/>)}
{BLOG.ADSENSE_GOOGLE_ID && <script async src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${BLOG.ADSENSE_GOOGLE_ID}`}
crossorigin="anonymous" />}
{BLOG.COMMENT_CUSDIS_APP_ID && <script defer src='https://cusdis.com/js/widget/lang/zh-cn.js' />}