[common] extended 'close' request

This commit is contained in:
Maxim Kadushkin 2018-11-02 15:17:45 +03:00
parent 7a7e4a7a50
commit f3d5090806
2 changed files with 2 additions and 1 deletions

View file

@ -58,6 +58,7 @@
editorConfig: cfg,
events: {
onInternalMessage: onInternalMessage,
onRequestClose: e => {return 0;}
}
});

View file

@ -73,7 +73,7 @@ define([
},
requestClose: function () {
if ( config.isDesktopApp && !!app ) {
app.execCommand('editor:request', 'close');
app.execCommand('editor:request', JSON.stringify({action:'close', url: config.customization.goback.url}));
}
}
};