[desktop] fix bug 61870

This commit is contained in:
maxkadushkin
2023-10-02 15:51:30 +03:00
parent ef8b2635ce
commit b494cdaeee

View File

@ -108,12 +108,12 @@ define([
} else
if (/editor:config/.test(cmd)) {
if ( param == 'request' ) {
if ( !!titlebuttons ) {
var opts = {
user: config.user,
title: { buttons: [] }
};
var opts = {
user: config.user,
title: { buttons: [] }
};
if ( !!titlebuttons ) {
var header = webapp.getController('Viewport').getView('Common.Views.Header');
if ( header ) {
for (var i in titlebuttons) {
@ -127,6 +127,8 @@ define([
config.callback_editorconfig = function() {
setTimeout(function(){window.on_native_message(cmd, param);},0);
}
} else {
native.execCommand('editor:config', JSON.stringify(opts));
}
}
} else