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

Fix assignment in switch expression issues

This commit is contained in:
Bill Thornton 2022-10-04 16:10:57 -04:00
parent 31c8060463
commit 9cb03ba4e5
4 changed files with 6 additions and 6 deletions

View file

@ -67,7 +67,7 @@ function getDeviceHtml(device) {
} }
function getTunerName(providerId) { function getTunerName(providerId) {
switch (providerId = providerId.toLowerCase()) { switch (providerId.toLowerCase()) {
case 'm3u': case 'm3u':
return 'M3U'; return 'M3U';

View file

@ -202,7 +202,7 @@ export default function (page, providerId, options) {
} }
function getTunerName(providerId) { function getTunerName(providerId) {
switch (providerId = providerId.toLowerCase()) { switch (providerId.toLowerCase()) {
case 'm3u': case 'm3u':
return 'M3U Playlist'; return 'M3U Playlist';
case 'hdhomerun': case 'hdhomerun':

View file

@ -106,7 +106,7 @@ export default function (page, providerId, options) {
} }
function getTunerName(providerId) { function getTunerName(providerId) {
switch (providerId = providerId.toLowerCase()) { switch (providerId.toLowerCase()) {
case 'm3u': case 'm3u':
return 'M3U Playlist'; return 'M3U Playlist';
case 'hdhomerun': case 'hdhomerun':

View file

@ -192,7 +192,7 @@ function deleteProvider(page, id) {
} }
function getTunerName(providerId) { function getTunerName(providerId) {
switch (providerId = providerId.toLowerCase()) { switch (providerId.toLowerCase()) {
case 'm3u': case 'm3u':
return 'M3U'; return 'M3U';
case 'hdhomerun': case 'hdhomerun':
@ -207,7 +207,7 @@ function getTunerName(providerId) {
} }
function getProviderName(providerId) { function getProviderName(providerId) {
switch (providerId = providerId.toLowerCase()) { switch (providerId.toLowerCase()) {
case 'schedulesdirect': case 'schedulesdirect':
return 'Schedules Direct'; return 'Schedules Direct';
case 'xmltv': case 'xmltv':
@ -218,7 +218,7 @@ function getProviderName(providerId) {
} }
function getProviderConfigurationUrl(providerId) { function getProviderConfigurationUrl(providerId) {
switch (providerId = providerId.toLowerCase()) { switch (providerId.toLowerCase()) {
case 'xmltv': case 'xmltv':
return '#/livetvguideprovider.html?type=xmltv'; return '#/livetvguideprovider.html?type=xmltv';
case 'schedulesdirect': case 'schedulesdirect':