fix
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 14 Jan 2025 14:28:32 +0000 (15:28 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 14 Jan 2025 14:28:32 +0000 (15:28 +0100)
requirements/requirements.txt
src/wolnelektury/static/js/main.js

index c121893..6b650e3 100644 (file)
@@ -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
index efa442e..2feb7b8 100644 (file)
 
     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();
+       });
+    }
 
 })();