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

updated nuget

This commit is contained in:
Luke Pulverenti 2014-04-15 00:23:08 -04:00
parent b7235c797f
commit b6526b65d0
3 changed files with 13 additions and 13 deletions

View file

@ -1,4 +1,4 @@
(function (document, $) {
(function (document, $, localStorage) {
var currentOwnerId;
var currentThemeIds = [];
@ -46,15 +46,14 @@
var key = userId + '-themesongs';
if (isEnabled != null) {
var val = isEnabled ? '1' : '0';
localStorage.setItem(key, val);
return;
if (isEnabled == null) {
return localStorage.getItem(key) == '1';
}
return localStorage.getItem(key);
var val = isEnabled ? '1' : '0';
localStorage.setItem(key, val);
}
function getPlayer() {
@ -75,7 +74,9 @@
});
window.ThemeSongManager = {
enabled: enabled
enabled: function (isEnabled) {
return enabled(isEnabled);
}
};
})(document, jQuery);
})(document, jQuery, window.localStorage);