Skip to content

Commit

Permalink
#109 src attribute for source in picture is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Nov 25, 2023
1 parent f6715aa commit cf6aecb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cast/static/js/cast/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function setModalImage(el) {
// set link for modal image
modalImage.parent().parent().attr('href', thumbnailPicture.parent().data("full"))
// set attributes for modal source
modalSource.attr('src', thumbnailSource.data('modal-src'))
modalSource.attr('srcset', thumbnailSource.data('modal-srcset'))
modalSource.attr('sizes', thumbnailSource.data('modal-sizes'))
// set prev and next buttons
Expand Down
1 change: 0 additions & 1 deletion cast/templates/cast/image/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<a href="{{ value.file.url }}">
<picture>
<source
src="{{ value.thumbnail.src.avif }}"
srcset="{{ value.thumbnail.srcset.avif }}"
type="image/avif"
sizes="{{ value.thumbnail.sizes }}"
Expand Down

0 comments on commit cf6aecb

Please sign in to comment.