Merge pull request #4052 from thornbill/apiclient-appstorage

This commit is contained in:
Bill Thornton
2022-10-15 09:17:43 -04:00
committed by GitHub
+2 -3
View File
@@ -1,4 +1,3 @@
import { AppStorage } from 'jellyfin-apiclient';
import Events from '../../utils/events.ts';
import { toBoolean } from '../../utils/string.ts';
@@ -108,7 +107,7 @@ class AppSettings {
set(name, value, userId) {
const currentValue = this.get(name, userId);
AppStorage.setItem(this.#getKey(name, userId), value);
localStorage.setItem(this.#getKey(name, userId), value);
if (currentValue !== value) {
Events.trigger(this, 'change', [name]);
@@ -116,7 +115,7 @@ class AppSettings {
}
get(name, userId) {
return AppStorage.getItem(this.#getKey(name, userId));
return localStorage.getItem(this.#getKey(name, userId));
}
}