Fix storage when IDB is unavailable

This commit is contained in:
morethanwords 2021-04-23 20:29:49 +04:00
parent 3d54192ce4
commit d0e5c07557

View File

@ -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) {