Skip to content

Commit

Permalink
Fix image source attribute in rebuild function
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 committed Nov 23, 2023
1 parent e46d2d5 commit da78002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rrweb-snapshot/src/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ function buildNode(
'rrweb-original-srcset',
n.attributes.srcset as string,
);
continue;
} else if (
tagName === 'img' &&
n.attributes.src &&
name === 'src' &&
options.assetManager
) {
// TODO: do something with the asset manager
Expand Down

0 comments on commit da78002

Please sign in to comment.