mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fix chat not deleted
This commit is contained in:
parent
bd531f2f07
commit
a6a77c2365
|
@ -118,10 +118,15 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||
result.docs.forEach(function(item) {
|
||||
console.log(item)
|
||||
db.get(item._id).then(function(doc) {
|
||||
return db.remove(doc);
|
||||
db.remove(doc).then(function(doc) {
|
||||
return location.reload();
|
||||
}).catch(function(err) {
|
||||
console.log(err);
|
||||
});
|
||||
}).catch(function(err) {
|
||||
console.log(err);
|
||||
});
|
||||
location.reload();
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
}).catch(function(err) {
|
||||
|
|
Loading…
Reference in a new issue