Skip to content

Commit cbd813a

Browse files
committed
Improved link validation and debugging in gltf-model-plus.js
1 parent 33cc130 commit cbd813a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/gltf-model-plus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ class GLTFHubsComponentsExtension {
597597
if (Object.prototype.hasOwnProperty.call(ext, "link")) {
598598
if (["image", "video", "model"].includes(componentName)) {
599599
if (!ext.link || !ext.link.href) {
600-
console.warn("Warning: Attempted to load a link but the href is missing!", ext);
600+
console.warn("Warning: Attempted to load a link but the href is missing! Component : ${componentName}", ext);
601601
} else {
602602
ext["media-link"] = {
603603
src: ext.link.href

0 commit comments

Comments
 (0)