Skip to content

Commit

Permalink
Fixup typings
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed May 3, 2024
1 parent 1f3cfbf commit 017e735
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 @@ -747,7 +747,7 @@ function serializeElementNode(
canvasCtx = canvasService.getContext('2d');
}
const image = n as HTMLImageElement;
const imageSrc = image.currentSrc || image.getAttribute('src');
const imageSrc: string = image.currentSrc || image.getAttribute('src') || '<unknown-src>';
const priorCrossOrigin = image.crossOrigin;
const recordInlineImage = () => {
image.removeEventListener('load', recordInlineImage);
Expand Down

0 comments on commit 017e735

Please sign in to comment.