File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -595,17 +595,18 @@ class GLTFHubsComponentsExtension {
595
595
// Note: For some reason this was not supported for PDFs. Not sure if it's random or if there is a reason.
596
596
if ( shouldUseNewLoader ( ) ) {
597
597
if ( Object . prototype . hasOwnProperty . call ( ext , "link" ) ) {
598
- if ( [ "image" , "video" , "model" ] . includes ( componentName ) ) {
598
+ if ( [ "image" , "video" , "model" ] . includes ( componentName ) ) {
599
599
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
+ }
609
610
const value = props [ propName ] ;
610
611
const type = value ?. __mhc_link_type ;
611
612
if ( type && value . index !== undefined ) {
You can’t perform that action at this time.
0 commit comments