Browse Source

Fix storage when IDB is unavailable

master
morethanwords 4 years ago
parent
commit
d0e5c07557
  1. 4
      src/lib/storage.ts

4
src/lib/storage.ts

@ -52,9 +52,9 @@ export default class AppStorage<Storage extends Record<string, any>/* Storage ex
} }
return this.cache[key] = value; return this.cache[key] = value;
} else { }/* else {
throw 'something went wrong'; throw 'something went wrong';
} } */
} }
public async set(obj: Partial<Storage>, onlyLocal = false) { public async set(obj: Partial<Storage>, onlyLocal = false) {

Loading…
Cancel
Save