summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/lightbox.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/lightbox.js b/content/lightbox.js
index a415930..66facd6 100644
--- a/content/lightbox.js
+++ b/content/lightbox.js
@@ -94,6 +94,12 @@
94 94
95 setIndex(0); 95 setIndex(0);
96 96
97 if (figureEls.length <= 1) {
98 lightboxPrevEl.remove();
99 lightboxNextEl.remove();
100 lightboxFooterEl.remove();
101 }
102
97 if (closeable) { 103 if (closeable) {
98 document.addEventListener('mousedown', (e) => { 104 document.addEventListener('mousedown', (e) => {
99 if (visible) { 105 if (visible) {