auto save only when its supported

This commit is contained in:
kbariotis 2021-03-22 21:59:10 +02:00
parent 5e1e16c150
commit 01f5914a82
2 changed files with 21 additions and 18 deletions

View file

@ -910,7 +910,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
.querySelector(".excalidraw")
?.classList.toggle("theme--dark", this.state.theme === "dark");
if (this.state.autoSave && this.state.fileHandle) {
if (this.state.autoSave && this.state.fileHandle && supported) {
try {
this.saveLocalSceneDebounced(
this.scene.getElementsIncludingDeleted(),