Skip to content

Commit

Permalink
Update packages/rrweb/src/replay/asset-manager/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Eoghan Murray <[email protected]>
  • Loading branch information
Juice10 and eoghanmurray authored Mar 20, 2024
1 parent 6945fd8 commit 842fc54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rrweb/src/replay/asset-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export default class AssetManager implements RebuildAssetManagerInterface {
}
hijackedAttributes.set(attribute, originalValue);
if (node.tagName === 'IMG' && attribute === 'src') {
// special value to prevent a broken image icon while asset is being loaded
node.setAttribute('src', '//:0');
} else {
node.removeAttribute(attribute);
Expand Down

0 comments on commit 842fc54

Please sign in to comment.