Skip to content

Commit

Permalink
Fix #904 (#906)
Browse files Browse the repository at this point in the history
Properly remove crossorigin attribute
  • Loading branch information
Juice10 authored May 31, 2022
1 parent 1355917 commit 9da1e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ function serializeNode(
}
oldValue
? (attributes.crossOrigin = oldValue)
: delete attributes.crossOrigin;
: image.removeAttribute('crossorigin');
};
// The image content may not have finished loading yet.
if (image.complete && image.naturalWidth !== 0) recordInlineImage();
Expand Down

0 comments on commit 9da1e43

Please sign in to comment.