1
0
Fork 0
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:
Vasily 2020-05-26 01:29:29 +03:00
parent 7587469480
commit 2bf7a53dc2
2 changed files with 42 additions and 173 deletions

View file

@ -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