From 5f610d5a4e4ce00ea1162a4ca341aec27ffc2b2a Mon Sep 17 00:00:00 2001 From: anime Date: Tue, 24 Dec 2024 16:42:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BF=AE=E5=A4=8D=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E5=86=85Google=20AdSense=20=E5=A4=84=E7=90=86):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit f557c00894c60390123d7f60515d68112190bafe) --- components/GoogleAdsense.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/GoogleAdsense.js b/components/GoogleAdsense.js index 21a60009..32547cd9 100644 --- a/components/GoogleAdsense.js +++ b/components/GoogleAdsense.js @@ -189,7 +189,7 @@ const AdEmbed = () => { // 遍历找到的元素 notionTextElements?.forEach(element => { // 检查元素的内容是否为 '' - if (element.innerHTML.trim() === '<ins/>') { + if (element.textContent.trim() === '') { // 创建新的 元素 const newInsElement = document.createElement('ins') newInsElement.className = 'adsbygoogle w-full py-1'