From d0e5c07557520f2dd391502cbf7b486a943bda07 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Fri, 23 Apr 2021 20:29:49 +0400 Subject: [PATCH] Fix storage when IDB is unavailable --- src/lib/storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/storage.ts b/src/lib/storage.ts index c9caf2e4..f4ae86d5 100644 --- a/src/lib/storage.ts +++ b/src/lib/storage.ts @@ -52,9 +52,9 @@ export default class AppStorage/* Storage ex } return this.cache[key] = value; - } else { + }/* else { throw 'something went wrong'; - } + } */ } public async set(obj: Partial, onlyLocal = false) {