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:
parent
0a7b7a14e3
commit
2c7636b291
7 changed files with 173 additions and 25 deletions
30
dashboard-ui/scripts/localsettings.js
Normal file
30
dashboard-ui/scripts/localsettings.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
(function ($, window, document) {
|
||||
|
||||
function get(key, userId) {
|
||||
|
||||
return localStorage.getItem(key + '-' + userId);
|
||||
}
|
||||
|
||||
function set(key, userId, value) {
|
||||
|
||||
localStorage.setItem(key + '-' + userId, value);
|
||||
}
|
||||
|
||||
function localSettings() {
|
||||
|
||||
var self = this;
|
||||
|
||||
self.val = function (key, userId, value) {
|
||||
|
||||
if (arguments.length < 3) {
|
||||
|
||||
return get(key, userId);
|
||||
}
|
||||
|
||||
set(key, userId, value);
|
||||
};
|
||||
}
|
||||
|
||||
window.LocalSettings = new localSettings();
|
||||
|
||||
})(jQuery, window, document);
|
Loading…
Add table
Add a link
Reference in a new issue