diff --git a/src/utils.ts b/src/utils.ts index 32e8e6d..c9a8b63 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -113,7 +113,7 @@ function getSetting(name: T): Settings[T] { } try { - return (sessionStorage.getItem(name) as Settings[T]) || DEFAULT_USER_SETTINGS[name]; + return (localStorage.getItem(name) as Settings[T]) || DEFAULT_USER_SETTINGS[name]; } catch { return DEFAULT_USER_SETTINGS[name]; } @@ -125,6 +125,6 @@ export function setSetting(name: string, value: T) { } try { - sessionStorage.setItem(name, String(value)); + localStorage.setItem(name, String(value)); } catch {} }