From cf515e73bb506fecbbb106778217326c41a27f16 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 6 Feb 2022 18:48:04 +0000 Subject: [PATCH] Remove unused code --- assets/ts/gallery.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/assets/ts/gallery.ts b/assets/ts/gallery.ts index 793020a..730139b 100644 --- a/assets/ts/gallery.ts +++ b/assets/ts/gallery.ts @@ -77,10 +77,7 @@ class StackGallery { if (!isNewLineImage) continue; const hasLink = img.parentElement.tagName == 'A'; - if (hasLink) { - isNewLineImage = img.parentElement.parentElement.tagName == 'P' && img.parentElement.parentElement.textContent.trim() == ''; - } - + let el: HTMLElement = img; /// Wrap image with figure tag, with flex-grow and flex-basis values extracted from img's data attributes const figure = document.createElement('figure');