This commit is contained in:
Ross
2022-08-04 10:15:35 +01:00
parent 0ab6b161ad
commit 682c874da4
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -2605,6 +2605,14 @@ $("#btn-delete-cached-questions").click(function(evt) {
// Do what should be done next...
});
} else {}
$("#btn-reset-local").click(function(evt) {
var r = confirm("Clear all local data");
if (r == true) {
(async () => {
const dbs = await window.indexedDB.databases();
dbs.forEach(db => { window.indexedDB.deleteDatabase(db.name) });
})();
} else {}
});
$("#btn-delete-current").click(function(evt) {