We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9681db9 commit 3fb9177Copy full SHA for 3fb9177
1 file changed
src/structures/vault.local/deck.js
@@ -107,7 +107,7 @@ export default class Deck extends Base {
107
// this.setRaw(`meta.${key}`, value);
108
}
109
110
- #getRaw(key) {
+ #getRaw(key) { // TODO: Store all data in `${this.key}.meta`?
111
this.#checkLocal();
112
return localStorage.getItem(key ? `${this.key}.${key}` : this.key) ?? '';
113
@@ -123,6 +123,6 @@ export default class Deck extends Base {
123
124
125
#checkLocal() {
126
- if (!this.#owner || !this.#soul || !this.index) throw new Error('Not a local deck');
+ if (!this.#owner || !this.#soul || !this.id) throw new Error('Not a local deck');
127
128
0 commit comments