mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Adapt to changes in server-side blurhash, reduce copypasta a bit
This commit is contained in:
parent
7587469480
commit
2bf7a53dc2
2 changed files with 42 additions and 173 deletions
|
@ -12,13 +12,6 @@ import 'css!./style';
|
|||
fillImageElement(elem, source);
|
||||
}
|
||||
|
||||
export function getImageBlurhashStr(hashes, tags) {
|
||||
if (hashes && tags) {
|
||||
return hashes[tags];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// function destroyBlurhash(target) {
|
||||
// let canvas = target.getElementsByClassName('blurhash-canvas')[0];
|
||||
// target.removeChild(canvas);
|
||||
|
@ -223,7 +216,6 @@ import 'css!./style';
|
|||
export default {
|
||||
fillImages: fillImages,
|
||||
fillImage: fillImage,
|
||||
getImageBlurhashStr: getImageBlurhashStr,
|
||||
lazyImage: lazyImage,
|
||||
lazyChildren: lazyChildren,
|
||||
getPrimaryImageAspectRatio: getPrimaryImageAspectRatio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue