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 Nov 19, 2024
1 parent 517c70e commit a787713
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 @@ -167,9 +167,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 a787713

Please sign in to comment.