Update ui/src/subsonic/index.js

replace .at(-1) due to compatibility issues with older browsers

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Ayman Makroo 2026-07-18 14:11:11 +05:30 committed by GitHub
parent 50f20d60af
commit 591ea80abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,10 +81,8 @@ const getAvatarUrl = (username, size) =>
)
const getCoverArtUrl = (record, size, square) => {
const bust = [record?.updatedAt, record?.importedAt]
.filter(Boolean)
.sort()
.at(-1)
const dates = [record?.updatedAt, record?.importedAt].filter(Boolean).sort()
const bust = dates[dates.length - 1]
const options = {
...(bust && { _: bust }),
...(size && { size }),