From: Radek Czajka Date: Tue, 14 Jan 2025 14:28:32 +0000 (+0100) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/d5a6347a4687eff0f47e832407160bdec086bd75 fix --- diff --git a/requirements/requirements.txt b/requirements/requirements.txt index c121893f5..6b650e391 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -39,7 +39,7 @@ mutagen==1.47 sorl-thumbnail==12.10.0 # home-brewed & dependencies -#librarian==24.5.4 +librarian==24.5.4 # celery tasks celery[redis]==5.4.0 diff --git a/src/wolnelektury/static/js/main.js b/src/wolnelektury/static/js/main.js index efa442e12..2feb7b8eb 100644 --- a/src/wolnelektury/static/js/main.js +++ b/src/wolnelektury/static/js/main.js @@ -545,8 +545,10 @@ const crisis = document.querySelector(".annoy-banner_crisis-container"); const crisisLink = document.querySelector('.annoy-banner_crisis-container a.action'); - crisis.addEventListener("click", function() { - crisisLink.click(); - }); + if (crisis) { + crisis.addEventListener("click", function() { + crisisLink.click(); + }); + } })();