Skip to content

Commit

Permalink
simplify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHerbst committed Dec 25, 2024
1 parent 7c00d64 commit 369b167
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/handlePrintWindowOnLoad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ export function handlePrintWindowOnLoad(
if (videoNode.readyState >= 2) { // Check if the video has already loaded a frame
markLoaded(videoNode);
} else if (!videoNode.src) {
// There are scenarios where `src` can be empty, for example, if it was defined
// incorrectly or lazy loaded in some manner. This is unexpected, but we should
// handle it to ensure printing can continue if this is encountered.
// See https://github.com/MatthewHerbst/react-to-print/pull/772
// There are scenarios where `src` can be empty, for example with lazy loading.
markLoaded(videoNode, ["Error loading video, `src` is empty", videoNode]);
} else{
videoNode.onloadeddata = () => {
Expand Down

0 comments on commit 369b167

Please sign in to comment.