diff options
Diffstat (limited to 'src/main/webapp/js/diagramly/ElectronApp.js')
-rw-r--r-- | src/main/webapp/js/diagramly/ElectronApp.js | 6 |
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() { |