mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fileHandle refactor & fixes (#2252)
This commit is contained in:
parent
4a26845395
commit
1484c5a63b
17 changed files with 163 additions and 41 deletions
|
@ -4,7 +4,7 @@ import { loadLibrary, saveLibrary } from "./localStorage";
|
|||
|
||||
export class Library {
|
||||
/** imports library (currently merges, removing duplicates) */
|
||||
static async importLibrary(blob: any) {
|
||||
static async importLibrary(blob: Blob) {
|
||||
const libraryFile = await loadLibraryFromBlob(blob);
|
||||
if (!libraryFile || !libraryFile.library) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue