Skip to content

Commit

Permalink
Improve getDimensions() method error message (#10414)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored Mar 7, 2024
1 parent 780c565 commit 1c4883f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/replay-next/src/utils/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function getDimensions(base64: string, mimeType: string): Promise<D
});
});
image.addEventListener("error", () => {
reject();
reject("Image data could not be loaded");
});
image.src = `data:${mimeType};base64,${base64}`;
});
Expand Down

0 comments on commit 1c4883f

Please sign in to comment.