mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
parent
68bdfaefbe
commit
b2822f3538
7 changed files with 33 additions and 18 deletions
|
@ -8,7 +8,6 @@ import { TopErrorBoundary } from "./components/TopErrorBoundary";
|
|||
import Excalidraw from "./excalidraw-embed/index";
|
||||
import { register as registerServiceWorker } from "./serviceWorker";
|
||||
|
||||
import { loadFromBlob } from "./data";
|
||||
import { debounce } from "./utils";
|
||||
import {
|
||||
importFromLocalStorage,
|
||||
|
@ -182,16 +181,3 @@ registerServiceWorker({
|
|||
}
|
||||
},
|
||||
});
|
||||
|
||||
if ("launchQueue" in window && "LaunchParams" in window) {
|
||||
(window as any).launchQueue.setConsumer(
|
||||
async (launchParams: { files: any[] }) => {
|
||||
if (!launchParams.files.length) {
|
||||
return;
|
||||
}
|
||||
const fileHandle = launchParams.files[0];
|
||||
const blob = await fileHandle.getFile();
|
||||
loadFromBlob(blob);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue