Virtual whiteboard for sketching hand-drawn like diagrams
fix: new FS API not working on Linux (#4280)
David Luzar1c11df011a2f
diff --git a/src/data/filesystem.ts b/src/data/filesystem.tsindex 1c7f137cbe..55f41171b6 100644--- a/src/data/filesystem.ts+++ b/src/data/filesystem.ts@@ -22,7 +22,7 @@ const INPUT_CHANGE_INTERVAL_MS = 500;export const fileOpen = <M extends boolean | undefined = false>(opts: {extensions?: FILE_EXTENSION[];- description?: string;+ description: string;multiple?: M;}): Promise<M extends false | undefined ? FileWithHandle : FileWithHandle[]@@ -94,7 +94,7 @@ export const fileSave = (name: string;/** file extension */extension: FILE_EXTENSION;- description?: string;+ description: string;/** existing FileSystemHandle */fileHandle?: FileSystemHandle | null;},diff --git a/src/data/index.ts b/src/data/index.tsindex fbc4664f00..8896646188 100644--- a/src/data/index.ts+++ b/src/data/index.ts@@ -54,6 +54,7 @@ export const exportCanvas = async (return await fileSave(new Blob([tempSvg.outerHTML], { type: MIME_TYPES.svg }),{+ description: "Export to SVG",name,extension: "svg",fileHandle,@@ -86,6 +87,7 @@ export const exportCanvas = async (}return await fileSave(blob, {+ description: "Export to PNG",name,extension: "png",fileHandle,