Fix library dnd (#2314)

This commit is contained in:
David Luzar 2020-10-30 21:01:41 +01:00 committed by GitHub
parent 8a50916ef2
commit ba3f548b91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 261 additions and 168 deletions

View file

@ -4,7 +4,6 @@ import { cleanAppStateForExport } from "../appState";
import { fileOpen, fileSave } from "browser-nativefs";
import { loadFromBlob } from "./blob";
import { loadLibrary } from "./localStorage";
import { Library } from "./library";
import { MIME_TYPES } from "../constants";
@ -65,7 +64,7 @@ export const isValidLibrary = (json: any) => {
};
export const saveLibraryAsJSON = async () => {
const library = await loadLibrary();
const library = await Library.loadLibrary();
const serialized = JSON.stringify(
{
type: "excalidrawlib",