Fix:Debian pkg crash due to using toSorted that is only available in Node20+ #3024

This commit is contained in:
advplyr 2024-05-27 13:22:20 -05:00
parent bf893a56c9
commit 1337c60cde

View File

@ -153,7 +153,7 @@ function parseChapters(_chapters) {
title
}
})
.toSorted((a, b) => a.start - b.start)
.sort((a, b) => a.start - b.start)
.map((chap, index) => {
chap.id = index
return chap