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

create localStorage abstraction

This commit is contained in:
Luke Pulverenti 2014-07-15 15:16:16 -04:00
parent ecba850f43
commit c5a40e9616
19 changed files with 138 additions and 103 deletions

View file

@ -1,4 +1,4 @@
(function (document, $, localStorage) {
(function (document, $) {
var currentOwnerId;
var currentThemeIds = [];
@ -44,7 +44,7 @@
var userId = Dashboard.getCurrentUserId();
var val = LocalSettings.val('enableThemeSongs', userId);
var val = store.getItem('enableThemeSongs', userId);
// For bandwidth
return val == '1' || (val != '0' && !$.browser.mobile);
@ -67,4 +67,4 @@
}
});
})(document, jQuery, window.localStorage);
})(document, jQuery);