mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix re-emptying image
This commit is contained in:
parent
832a204130
commit
bca0e726ca
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,9 @@ import './style.scss';
|
||||||
}
|
}
|
||||||
|
|
||||||
function emptyImageElement(elem) {
|
function emptyImageElement(elem) {
|
||||||
|
// block repeated call - requestAnimationFrame twice for one image
|
||||||
|
if (elem.getAttribute('data-src')) return;
|
||||||
|
|
||||||
let url;
|
let url;
|
||||||
|
|
||||||
if (elem.tagName !== 'IMG') {
|
if (elem.tagName !== 'IMG') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue