mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
9f72147880
commit
576b872bde
9 changed files with 38 additions and 36 deletions
|
@ -38,13 +38,15 @@
|
|||
return Math.floor(Math.random() * (max - min) + min);
|
||||
}
|
||||
|
||||
var cache = {};
|
||||
|
||||
function getBackdropItemIds(apiClient, userId, types, parentId) {
|
||||
|
||||
var key = 'backdrops2_' + userId + (types || '') + (parentId || '');
|
||||
|
||||
var deferred = $.Deferred();
|
||||
|
||||
var data = sessionStore.getItem(key);
|
||||
var data = cache[key];
|
||||
|
||||
if (data) {
|
||||
|
||||
|
@ -73,7 +75,7 @@
|
|||
};
|
||||
});
|
||||
|
||||
sessionStore.setItem(key, JSON.stringify(images));
|
||||
cache[key] = JSON.stringify(images);
|
||||
deferred.resolveWith(null, [images]);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue