Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/js/diagramly/ElectronApp.js')
-rw-r--r--src/main/webapp/js/diagramly/ElectronApp.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/webapp/js/diagramly/ElectronApp.js b/src/main/webapp/js/diagramly/ElectronApp.js
index 87421fb8..eecc5b10 100644
--- a/src/main/webapp/js/diagramly/ElectronApp.js
+++ b/src/main/webapp/js/diagramly/ElectronApp.js
@@ -325,6 +325,12 @@ mxStencilRegistry.allowEval = false;
electron.sendMessage('isModified-result', reply);
});
+ electron.registerMsgListener('removeDraft', () =>
+ {
+ editorUi.getCurrentFile().removeDraft();
+ electron.sendMessage('draftRemoved', {});
+ });
+
// Adds support for libraries
this.actions.addAction('newLibrary...', mxUtils.bind(this, function()
{