fixup 53aa239d
for new installations
This commit is contained in:
parent
09010c20a6
commit
50239a49df
|
@ -119,11 +119,15 @@ do {
|
||||||
.then(({target}) => (
|
.then(({target}) => (
|
||||||
(target.result || [])[0] ?
|
(target.result || [])[0] ?
|
||||||
Promise.reject('ok') :
|
Promise.reject('ok') :
|
||||||
dbExecIndexedDB('get', -1)))
|
dbExecIndexedDB('put', {id: -1})))
|
||||||
|
.then(() =>
|
||||||
|
dbExecIndexedDB('get', -1))
|
||||||
.then(({target}) => (
|
.then(({target}) => (
|
||||||
(target.result || {}).id === -1 ?
|
(target.result || {}).id === -1 ?
|
||||||
dbExecIndexedDB('delete', -1).then(() => 'ok') :
|
dbExecIndexedDB('delete', -1) :
|
||||||
Promise.reject()))
|
Promise.reject()))
|
||||||
|
.then(() =>
|
||||||
|
Promise.reject('ok'))
|
||||||
.catch(result => {
|
.catch(result => {
|
||||||
if (result === 'ok') {
|
if (result === 'ok') {
|
||||||
chromeLocal.set({dbInChromeStorage: false});
|
chromeLocal.set({dbInChromeStorage: false});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user