This commit is contained in:
@@ -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();
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user