From 8f5ea3dc7b0c1a7a938bf548e87f2379abe72f46 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 21 Nov 2025 20:39:10 +0800 Subject: [PATCH] 22 --- index.html | 6 ++++-- js/globe.js | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 38208a5..5cc32bf 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,10 @@ - - + + diff --git a/js/globe.js b/js/globe.js index 5ed93bf..3ef3989 100644 --- a/js/globe.js +++ b/js/globe.js @@ -4,9 +4,13 @@ (function () { function initGlobe() { var container = document.getElementById("bannerGlobe"); - if (!container) return; + if (!container) { + console.warn("[Globe] bannerGlobe container not found"); + return; + } if (typeof THREE === "undefined") { // Three.js 未加载时直接跳过,不影响其它功能 + console.warn("[Globe] THREE is undefined, please ensure three.min.js is loaded"); return; } @@ -181,4 +185,3 @@ initGlobe(); } })(); -