fix: move cache-busting to server side

This commit is contained in:
ceruleandeep
2024-12-22 08:43:35 +11:00
parent 78a1397a3c
commit 7bb37f129d
2 changed files with 2 additions and 3 deletions

View File

@ -1283,8 +1283,6 @@ async function drawSpritesList(character, labels, sprites) {
* @returns {Promise<string>} Rendered list item template
*/
async function getListItem(item, imageSrc, textClass, isCustom) {
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
imageSrc = isFirefox ? `${imageSrc}?t=${Date.now()}` : imageSrc;
return renderExtensionTemplateAsync(MODULE_NAME, 'list-item', { item, imageSrc, textClass, isCustom });
}