1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

handle multiple DOM nodes with same blurhash string

This commit is contained in:
Fernando Fernández 2021-12-30 21:46:52 +01:00
parent 5716e4cf05
commit d1e0a7b1d7
No known key found for this signature in database
GPG key ID: 44495B839CCFF8CF

View file

@ -54,7 +54,8 @@ worker.addEventListener(
// Lower values had more visible pixelation // Lower values had more visible pixelation
const width = 20; const width = 20;
const height = 20; const height = 20;
targetDic[hash] = target; targetDic[hash] = (targetDic[hash] || []).filter(item => item !== target);
targetDic[hash].push(target);
worker.postMessage({ worker.postMessage({
hash, hash,