mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: file handle not persisted when importing excalidraw files (#5372)
This commit is contained in:
parent
120c8f373c
commit
bbfd2b3cd3
1 changed files with 6 additions and 1 deletions
|
@ -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?: {
|
||||
|
|
Loading…
Add table
Reference in a new issue