fixed all the last big bugs before going to PWA
This commit is contained in:
+2
-1
@@ -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>
|
||||
Reference in New Issue
Block a user