Skip to content

Commit

Permalink
Fixes #1165 by making a missing alt tag a console warning
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminsehl committed May 2, 2022
1 parent f461d27 commit a4d8384
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export function ModelViewer<TTag extends ElementType>(
}

if (!data.alt) {
throw new Error(`<ModelViewer/> requires the 'data.alt' prop`);
console.warn(`<ModelViewer/> requires the 'data.alt' prop for accessibility`);
}

return (
Expand Down

0 comments on commit a4d8384

Please sign in to comment.