From 1b7a0262ce13fd80c1d4cc88ae0f7ed01a2242b2 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 14 Oct 2022 18:08:46 -0400 Subject: [PATCH] Remove apiclient appstorage usage --- src/scripts/settings/appSettings.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scripts/settings/appSettings.js b/src/scripts/settings/appSettings.js index d963a2c76b..7a48943954 100644 --- a/src/scripts/settings/appSettings.js +++ b/src/scripts/settings/appSettings.js @@ -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)); } }