mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove useless parameter in lazyImage
This commit is contained in:
parent
6dde11349a
commit
58d9037986
2 changed files with 7 additions and 12 deletions
|
@ -3,21 +3,16 @@ import userSettings from 'userSettings';
|
|||
import 'css!./style';
|
||||
/* eslint-disable indent */
|
||||
|
||||
export function lazyImage(elem, source, enableEffects) {
|
||||
|
||||
export function lazyImage(elem, source = elem.getAttribute('data-src')) {
|
||||
if (!elem) {
|
||||
throw new Error('elem cannot be null');
|
||||
}
|
||||
|
||||
if (!source) {
|
||||
source = elem.getAttribute('data-src');
|
||||
}
|
||||
|
||||
if (!source) {
|
||||
return;
|
||||
}
|
||||
|
||||
fillImageElement(elem, source, enableEffects);
|
||||
fillImageElement(elem, source);
|
||||
}
|
||||
|
||||
export function fillImage(entry) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue