Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferbaxter committed May 19, 2021
1 parent 033f3aa commit d8f19fe
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,7 @@ export class LightboxManager {
if (element.hasAttribute('lightbox-thumbnail-id')) {
const thumbnailId = element.getAttribute('lightbox-thumbnail-id');
const thumbnailImage = this.ampdoc_.getElementById(thumbnailId);
if (
thumbnailImage &&
LIGHTBOX_ELIGIBLE_TAGS.has(thumbnailImage.tagName)
) {
if (LIGHTBOX_ELIGIBLE_TAGS.has(thumbnailImage?.tagName)) {
return srcsetFromElement(thumbnailImage);
}
}
Expand Down

0 comments on commit d8f19fe

Please sign in to comment.