forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
c9ce29f206
commit
40e894df8b
294 changed files with 14209 additions and 4192 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue