diff --git a/background/storage.js b/background/storage.js index fe8a222b..6f1098d3 100644 --- a/background/storage.js +++ b/background/storage.js @@ -117,7 +117,9 @@ do { chromeLocal.get('dbInChromeStorage') .then(data => data && data.dbInChromeStorage && Promise.reject()) - .then(() => dbExecIndexedDB('getAllKeys', IDBKeyRange.lowerBound(1), 1)) + .then(() => + tryCatch(dbExecIndexedDB, 'getAllKeys', IDBKeyRange.lowerBound(1), 1) || + Promise.reject()) .then(({target}) => ( (target.result || [])[0] ? Promise.reject('ok') :