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:
parent
ecba850f43
commit
c5a40e9616
19 changed files with 138 additions and 103 deletions
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue