mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update storage
This commit is contained in:
parent
c50d82e592
commit
781f63d9ac
7 changed files with 94 additions and 64 deletions
21
dashboard-ui/bower_components/emby-apiclient/appstorage-memory.js
vendored
Normal file
21
dashboard-ui/bower_components/emby-apiclient/appstorage-memory.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
define([], function () {
|
||||
|
||||
function myStore(defaultObject) {
|
||||
|
||||
this.localData = {};
|
||||
}
|
||||
|
||||
myStore.prototype.setItem = function (name, value) {
|
||||
this.localData[name] = value;
|
||||
};
|
||||
|
||||
myStore.prototype.getItem = function (name) {
|
||||
return this.localData[name];
|
||||
};
|
||||
|
||||
myStore.prototype.removeItem = function (name) {
|
||||
this.localData[name] = null;
|
||||
};
|
||||
|
||||
return new myStore();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue