mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Appease SonarCloud.
This commit is contained in:
parent
e9caf5e336
commit
c8c8be39cd
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue