Skip to content

Commit

Permalink
refactor: Remove console log from showToast function
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Oct 12, 2024
1 parent 304c769 commit fc5ccd1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/brazil_blog/static/js/brazil_blog.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Simple toast notification function
function showToast(message, type = 'success') {
const toasts = document.querySelectorAll('[role="alert"]');
console.log(toasts);
toasts.forEach(toast => {
const currentY = toast.style.transform.match(/translateY\(-(\d+)px\)/);
toast.style.transform = `translateY(-${toast.offsetHeight + 10 + (currentY ? parseInt(currentY[1]) : 0)}px)`;
Expand Down

0 comments on commit fc5ccd1

Please sign in to comment.