Skip to content

Commit

Permalink
1.0.5-test2
Browse files Browse the repository at this point in the history
  • Loading branch information
zsviczian committed Apr 24, 2021
1 parent 2d32b4b commit d57a28c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ExcalidrawView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export default class ExcalidrawView extends TextFileView {
else return this.data;
}

async onunload() {
if(this.excalidrawRef) await this.save();
}

setViewData (data: string, clear: boolean) {
if (this.app.workspace.layoutReady) {
this.loadDrawing(data,clear);
Expand Down

0 comments on commit d57a28c

Please sign in to comment.