mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 13:22:58 -05:00
Remove undefined audio only quality from quality list
This commit is contained in:
parent
125369c3d4
commit
1af39b935e
1 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,12 @@ export const createQualitySelector = (player: any) => {
|
|||
}
|
||||
})
|
||||
|
||||
// remove audio only
|
||||
const audioOnlyQuality = formatedQualities[formatedQualities.length-1]
|
||||
if (audioOnlyQuality.name === "undefinedp") {
|
||||
formatedQualities.splice(formatedQualities.length-1, 1)
|
||||
}
|
||||
|
||||
formattedLevels.push(formatedQualities)
|
||||
updateLevels()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue