diff --git a/state.js b/state.js index 448fbd4..9d2e403 100644 --- a/state.js +++ b/state.js @@ -179,7 +179,8 @@ export class StoredState extends State { get(prop) { if (prop == "value") prop = this.#valueKey - return JSON.parse(this.#storage[prop]) + const value = this.#storage[prop] + return value && JSON.parse(value) } }