fileHandle refactor & fixes (#2252)

This commit is contained in:
David Luzar
2020-10-19 10:53:37 +02:00
committed by GitHub
parent 4a26845395
commit 1484c5a63b
17 changed files with 163 additions and 41 deletions

View File

@ -69,6 +69,7 @@ export const getDefaultAppState = (): Omit<
width: window.innerWidth,
height: window.innerHeight,
isLibraryOpen: false,
fileHandle: null,
};
};
@ -145,6 +146,7 @@ const APP_STATE_STORAGE_CONF = (<
zoom: { browser: true, export: false },
offsetTop: { browser: false, export: false },
offsetLeft: { browser: false, export: false },
fileHandle: { browser: false, export: false },
});
const _clearAppStateForStorage = <ExportType extends "export" | "browser">(