Firefox copium for expression images

This commit is contained in:
Cohee 2024-02-05 02:21:20 +02:00
parent f12aeeed90
commit b158a86c25
1 changed files with 2 additions and 0 deletions

View File

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