Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix #904 (#906)
Properly remove crossorigin attribute
  • Loading branch information
Juice10 committed Jun 6, 2022
commit 0a63f4c27225a78faf0161c882690967c7f8e63b
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ function serializeElementNode(
}
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