Skip to content

Commit

Permalink
fix: png scene embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Jan 6, 2025
1 parent 6951b64 commit 6224722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/excalidraw/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ export const exportAsImage = async ({
});

if (type === "png") {
const blob = canvasToBlob(tempCanvas);
let blob = canvasToBlob(tempCanvas);
if (data.appState.exportEmbedScene) {
blob.then((blob) =>
blob = blob.then((blob) =>
import("./image").then(({ encodePngMetadata }) =>
encodePngMetadata({
blob,
Expand Down

0 comments on commit 6224722

Please sign in to comment.