mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add file handling (#1736)
* Add file handling https://github.com/WICG/file-handling/blob/master/explainer.md#example * Only trigger on `.excalidraw` for now
This commit is contained in:
parent
998f0ae458
commit
6b87278a0f
3 changed files with 24 additions and 4 deletions
|
@ -58,9 +58,7 @@ export const actionClearCanvas = register({
|
|||
showAriaLabel={useIsMobile()}
|
||||
onClick={() => {
|
||||
if (window.confirm(t("alerts.clearReset"))) {
|
||||
// TODO: Defined globally, since file handles aren't yet serializable.
|
||||
// Once `FileSystemFileHandle` can be serialized, make this
|
||||
// part of `AppState`.
|
||||
// TODO: Make this part of `AppState`.
|
||||
(window as any).handle = null;
|
||||
updateData(null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue