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

This commit is contained in:
David Luzar 2022-06-28 14:44:59 +02:00 committed by GitHub
parent 120c8f373c
commit bbfd2b3cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,12 @@ export const loadFromJSON = async (
// gets resolved. Else, iOS users cannot open `.excalidraw` files.
// 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?: {