diff --git a/backend/functions/src/services/snapshot-formatter.ts b/backend/functions/src/services/snapshot-formatter.ts index d48dcd3..b8d7568 100644 --- a/backend/functions/src/services/snapshot-formatter.ts +++ b/backend/functions/src/services/snapshot-formatter.ts @@ -231,7 +231,7 @@ export class SnapshotFormatter extends AsyncService { if (imageRetention === 'alt') { return alt ? `(Image ${++imgIdx}: ${alt})` : ''; } - let originalSrc = (node.getAttribute('src') || '').trim(); + const originalSrc = (node.getAttribute('src') || '').trim(); let linkPreferredSrc = originalSrc; const maybeSrcSet: string = (node.getAttribute('srcset') || '').trim(); if (!linkPreferredSrc && maybeSrcSet) {