Browse Source

fix: file handle not persisted when importing excalidraw files (#5372)

pull/5384/head
David Luzar 4 years ago committed by GitHub
parent
commit
bbfd2b3cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/data/json.ts

7
src/data/json.ts

@ -98,7 +98,12 @@ export const loadFromJSON = async (
// gets resolved. Else, iOS users cannot open `.excalidraw` files. // gets resolved. Else, iOS users cannot open `.excalidraw` files.
// extensions: ["json", "excalidraw", "png", "svg"], // extensions: ["json", "excalidraw", "png", "svg"],
}); });
return loadFromBlob(await normalizeFile(file), localAppState, localElements); return loadFromBlob(
await normalizeFile(file),
localAppState,
localElements,
file.handle,
);
}; };
export const isValidExcalidrawData = (data?: { export const isValidExcalidrawData = (data?: {

Loading…
Cancel
Save