mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
auto save only when its supported
This commit is contained in:
parent
5e1e16c150
commit
01f5914a82
2 changed files with 21 additions and 18 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue