This commit is contained in:
catto 2024-05-05 22:58:23 +02:00
parent b5238c7c93
commit 1c0ac3b219
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ window.addEventListener("DOMContentLoaded", async () => {
let reverseIconEl = document.querySelector('#reverse-icon') as HTMLImageElement | null;
if (reverseIconEl) {
reverseIconEl.src = reversed ? 'src/assets/sort-from-bottom-to-top.svg' : 'src/assets/sort-from-top-to-bottom.svg';
reverseIconEl.addEventListener("click", (e: Event) => {
reverseIconEl.addEventListener("click", () => {
toggleReverse(reverseIconEl as HTMLImageElement);
})
}