fixed all the last big bugs before going to PWA

This commit is contained in:
maxluli
2022-10-11 09:02:09 +02:00
parent c475b6323d
commit cb8162214f
4 changed files with 36 additions and 4 deletions
+2 -1
View File
@@ -58,6 +58,7 @@
loadData();
}
function loadData() {
loadFromIndexedDB("favorites", 0).then((response) => {
var container = document.getElementById("cards");
container.innerHTML = "";
@@ -85,9 +86,9 @@
//alert("bonsoir " + evt.target.id);
let id = evt.target.id;
removeFromIndexDB("favorites", id);
DeleteFromApi("favorites", id);
loadData();
}
</script>
</html>