mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
chore: typo (#9988)
This commit is contained in:
parent
44c72a4f6f
commit
6e30bef652
1 changed files with 3 additions and 3 deletions
|
@ -51,11 +51,11 @@ const fallbackImage = await getImage({
|
|||
});
|
||||
|
||||
const imgAdditionalAttributes: HTMLAttributes<'img'> = {};
|
||||
const sourceAdditionaAttributes: HTMLAttributes<'source'> = {};
|
||||
const sourceAdditionalAttributes: HTMLAttributes<'source'> = {};
|
||||
|
||||
// Propagate the `sizes` attribute to the `source` elements
|
||||
if (props.sizes) {
|
||||
sourceAdditionaAttributes.sizes = props.sizes;
|
||||
sourceAdditionalAttributes.sizes = props.sizes;
|
||||
}
|
||||
|
||||
if (fallbackImage.srcSet.values.length > 0) {
|
||||
|
@ -74,7 +74,7 @@ if (fallbackImage.srcSet.values.length > 0) {
|
|||
<source
|
||||
srcset={srcsetAttribute}
|
||||
type={'image/' + image.options.format}
|
||||
{...sourceAdditionaAttributes}
|
||||
{...sourceAdditionalAttributes}
|
||||
/>
|
||||
);
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue