Skip to content

Commit 5a1ce81

Browse files
authored
adds back closing brace and fixes indentation
1 parent cbd813a commit 5a1ce81

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/components/gltf-model-plus.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -595,17 +595,18 @@ class GLTFHubsComponentsExtension {
595595
// Note: For some reason this was not supported for PDFs. Not sure if it's random or if there is a reason.
596596
if (shouldUseNewLoader()) {
597597
if (Object.prototype.hasOwnProperty.call(ext, "link")) {
598-
if (["image", "video", "model"].includes(componentName)) {
598+
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! Component : ${componentName}", ext);
601-
} else {
602-
ext["media-link"] = {
603-
src: ext.link.href
604-
};
605-
delete ext.link;
606-
}
607-
}
608-
}
600+
console.warn("Warning: Attempted to load a link but the href is missing! Component : ${componentName}", ext);
601+
} else {
602+
ext["media-link"] = {
603+
src: ext.link.href
604+
};
605+
delete ext.link;
606+
}
607+
}
608+
}
609+
}
609610
const value = props[propName];
610611
const type = value?.__mhc_link_type;
611612
if (type && value.index !== undefined) {

0 commit comments

Comments
 (0)