Remove unused code

This commit is contained in:
Jimmy Cai 2022-02-06 18:48:04 +00:00 committed by GitHub
parent 72bf8be7ce
commit cf515e73bb

View File

@ -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');