Skip to content

Commit

Permalink
try this reload if works
Browse files Browse the repository at this point in the history
  • Loading branch information
YouweiPeng committed Nov 27, 2023
1 parent d0f1874 commit 8ca8340
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/scripts/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ document.addEventListener("DOMContentLoaded", function() {
}
}
likePost();
window.location.reload();
break;
case "comment":
console.log("comment is clicked");
Expand Down Expand Up @@ -340,6 +341,7 @@ document.addEventListener("DOMContentLoaded", function() {
cancelDelete.onclick = () => {
confirmationDialog.style.display = "none";
};
window.location.reload();
};
const editBtn = document.createElement("button");
editBtn.textContent = "Edit";
Expand Down Expand Up @@ -367,6 +369,7 @@ document.addEventListener("DOMContentLoaded", function() {
cancelEdit.onclick = () => {
editModal.style.display = "none";
};
window.location.reload();
};
postNavList.appendChild(buttondiv);
}
Expand Down

0 comments on commit 8ca8340

Please sign in to comment.