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

remove the unused server check for cinema mode option

This commit is contained in:
nyanmisaka 2021-12-05 20:54:02 +08:00
parent 435752a815
commit 9d7fd0c8ff

View file

@ -157,15 +157,6 @@ import template from './playbackSettings.template.html';
context.querySelector('.chkEpisodeAutoPlay').checked = user.Configuration.EnableNextEpisodeAutoPlay || false; context.querySelector('.chkEpisodeAutoPlay').checked = user.Configuration.EnableNextEpisodeAutoPlay || false;
}); });
// hide cinema mode options if disabled at server level
apiClient.getNamedConfiguration('cinemamode').then(cinemaConfig => {
if (cinemaConfig.EnableIntrosForMovies || cinemaConfig.EnableIntrosForEpisodes) {
context.querySelector('.cinemaModeOptions').classList.remove('hide');
} else {
context.querySelector('.cinemaModeOptions').classList.add('hide');
}
});
if (appHost.supports('externalplayerintent') && userId === loggedInUserId) { if (appHost.supports('externalplayerintent') && userId === loggedInUserId) {
context.querySelector('.fldExternalPlayer').classList.remove('hide'); context.querySelector('.fldExternalPlayer').classList.remove('hide');
} else { } else {