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
View File
@@ -62,6 +62,7 @@
loadData();
}
function loadData(){
//ReadFromApi("likes").then((response) => {
loadFromIndexedDB("likes", 0).then((response) => {
var container = document.getElementById("cards");
container.innerHTML = "";
@@ -90,6 +91,7 @@
//alert("bonsoir " + evt.target.id);
let id = evt.target.id;
removeFromIndexDB("likes", id);
DeleteFromApi("likes", id);
loadData();
}
</script>