chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2024-10-19 14:44:55 +02:00
parent c9ce29f206
commit 40e894df8b
294 changed files with 14209 additions and 4192 deletions

View file

@ -5,7 +5,6 @@ import { Utils } from "../../Utils"
* UIEventsource-wrapper around localStorage
*/
export class LocalStorageSource {
private static readonly _cache: Record<string, UIEventSource<string>> = {}
static getParsed<T>(key: string, defaultValue: T): UIEventSource<T> {
@ -21,7 +20,7 @@ export class LocalStorageSource {
}
},
[],
(value) => JSON.stringify(value),
(value) => JSON.stringify(value)
)
}
@ -32,7 +31,6 @@ export class LocalStorageSource {
}
let saved = defaultValue
if (!Utils.runningFromConsole) {
try {
saved = localStorage.getItem(key)
if (saved === "undefined") {