[common] extended 'close' request
This commit is contained in:
parent
7a7e4a7a50
commit
f3d5090806
|
@ -58,6 +58,7 @@
|
|||
editorConfig: cfg,
|
||||
events: {
|
||||
onInternalMessage: onInternalMessage,
|
||||
onRequestClose: e => {return 0;}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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}));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue