mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-13 20:39:54 +02:00
add eror handler, update snapshots
This commit is contained in:
@@ -911,10 +911,14 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
||||
?.classList.toggle("theme--dark", this.state.theme === "dark");
|
||||
|
||||
if (this.state.autoSave && this.state.fileHandle) {
|
||||
this.saveLocalSceneDebounced(
|
||||
this.scene.getElementsIncludingDeleted(),
|
||||
this.state,
|
||||
);
|
||||
try {
|
||||
this.saveLocalSceneDebounced(
|
||||
this.scene.getElementsIncludingDeleted(),
|
||||
this.state,
|
||||
);
|
||||
} catch (error) {
|
||||
this.setState({ autoSave: false });
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
|
Reference in New Issue
Block a user