From 1fadf4312c6af6c3e8390a4787b4944865d02ee0 Mon Sep 17 00:00:00 2001 From: afred Date: Wed, 11 Dec 2024 13:10:55 +0800 Subject: [PATCH] change owner --- app/components/HotjarLoader.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/HotjarLoader.tsx b/app/components/HotjarLoader.tsx index c55f6ffe1..cc78c3a1a 100644 --- a/app/components/HotjarLoader.tsx +++ b/app/components/HotjarLoader.tsx @@ -13,8 +13,8 @@ export default function HotjarLoader() { h._hjSettings = { hjid: 3414362, hjsv: 6 }; // 获取 元素 - a = o.getElementsByTagName("head")[0]; - if (!a) { + const headElement = o.getElementsByTagName("head")[0]; + if (!headElement) { console.error("Head element not found in the document."); return; // 如果没有找到 ,直接退出 } @@ -25,7 +25,7 @@ export default function HotjarLoader() { r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv; // 将