1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-10-18 01:06:48 -04:00
parent 138611efb5
commit 11615f4399
72 changed files with 829 additions and 623 deletions

View file

@ -1,4 +1,5 @@
define([], function () {
'use strict';
function getVideoQualityOptions(maxStreamingBitrate, videoWidth) {
@ -60,12 +61,12 @@
var option = options[i];
if (selectedIndex == -1 && option.bitrate <= maxStreamingBitrate) {
if (selectedIndex === -1 && option.bitrate <= maxStreamingBitrate) {
selectedIndex = i;
}
}
if (selectedIndex == -1) {
if (selectedIndex === -1) {
selectedIndex = options.length - 1;
}
@ -74,7 +75,7 @@
}
return options;
};
}
return {
getVideoQualityOptions: getVideoQualityOptions