Make File Handling actually work (#2181)

Follow-up from #1736
This commit is contained in:
Thomas Steiner 2020-09-22 15:21:22 +02:00 committed by GitHub
parent 68bdfaefbe
commit b2822f3538
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 33 additions and 18 deletions

View file

@ -29,6 +29,7 @@ const loadFileContents = async (blob: any) => {
*/
export const loadFromBlob = async (blob: any, appState?: AppState) => {
if (blob.handle) {
// TODO: Make this part of `AppState`.
(window as any).handle = blob.handle;
}