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

make backdrops optional

This commit is contained in:
Luke Pulverenti 2014-05-21 14:38:12 -04:00
parent 0a7b7a14e3
commit 2c7636b291
7 changed files with 173 additions and 25 deletions

View file

@ -40,20 +40,11 @@
}
}
function enabled(isEnabled) {
function enabled() {
var userId = Dashboard.getCurrentUserId();
var val = LocalSettings.val('enableThemeSongs', userId);
var key = userId + '-themesongs';
if (isEnabled == null) {
return localStorage.getItem(key) == '1';
}
var val = isEnabled ? '1' : '0';
localStorage.setItem(key, val);
return val == '1';
}
function getPlayer() {
@ -73,10 +64,4 @@
}
});
window.ThemeSongManager = {
enabled: function (isEnabled) {
return enabled(isEnabled);
}
};
})(document, jQuery, window.localStorage);