fix: Library load button does not work (#5205)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
bed9fca4a5
commit
605aa554d0
@ -110,13 +110,17 @@ const LibraryMenuItems = ({
|
|||||||
icon={load}
|
icon={load}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
try {
|
try {
|
||||||
await fileOpen({
|
await library.updateLibrary({
|
||||||
description: "Excalidraw library files",
|
libraryItems: fileOpen({
|
||||||
// ToDo: Be over-permissive until https://bugs.webkit.org/show_bug.cgi?id=34442
|
description: "Excalidraw library files",
|
||||||
// gets resolved. Else, iOS users cannot open `.excalidraw` files.
|
// ToDo: Be over-permissive until https://bugs.webkit.org/show_bug.cgi?id=34442
|
||||||
/*
|
// gets resolved. Else, iOS users cannot open `.excalidraw` files.
|
||||||
extensions: [".json", ".excalidrawlib"],
|
/*
|
||||||
*/
|
extensions: [".json", ".excalidrawlib"],
|
||||||
|
*/
|
||||||
|
}),
|
||||||
|
merge: true,
|
||||||
|
openLibraryMenu: true,
|
||||||
});
|
});
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
if (error?.name === "AbortError") {
|
if (error?.name === "AbortError") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user