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

Appease SonarCloud.

This commit is contained in:
Ian Walton 2020-09-07 13:10:38 -04:00
parent e9caf5e336
commit c8c8be39cd
2 changed files with 4 additions and 4 deletions

View file

@ -5,10 +5,10 @@ export function supported() {
return typeof(Storage) !== 'undefined'; return typeof(Storage) !== 'undefined';
} }
export function enable(isEnabled) { export function enable(enabled) {
if (!supported()) return; if (!supported()) return;
if (isEnabled) { if (enabled) {
const currentPlayerInfo = playbackManager.getPlayerInfo(); const currentPlayerInfo = playbackManager.getPlayerInfo();
if (currentPlayerInfo && currentPlayerInfo.id && currentPlayerInfo.id) { if (currentPlayerInfo && currentPlayerInfo.id && currentPlayerInfo.id) {

View file

@ -224,8 +224,8 @@ function showActivePlayerMenuInternal(dialogHelper, playerInfo) {
if (autocast.supported()) { if (autocast.supported()) {
html += '<label class="checkboxContainer">'; html += '<label class="checkboxContainer">';
var checkedHtml = autocast.isEnabled() ? ' checked' : ''; var checkedHtmlAC = autocast.isEnabled() ? ' checked' : '';
html += '<input type="checkbox" is="emby-checkbox" class="chkAutoCast"' + checkedHtml + '/>'; html += '<input type="checkbox" is="emby-checkbox" class="chkAutoCast"' + checkedHtmlAC + '/>';
html += '<span>' + globalize.translate('EnableAutoCast') + '</span>'; html += '<span>' + globalize.translate('EnableAutoCast') + '</span>';
html += '</label>'; html += '</label>';
} }