forked from Maxluli/TinderPokemon
fixed all the last big bugs before going to PWA
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user