[all] share some config to desktop

This commit is contained in:
Maxim Kadushkin 2019-03-29 16:01:46 +03:00
parent c7e5a730da
commit 86a808ba4f

View file

@ -57,17 +57,23 @@ define([
$('.toolbar').addClass('editor-native-color');
});
!!app && (app.on_native_message = function (cmd, param) {
if (/^style:change/.test(cmd)) {
var obj = JSON.parse(param);
if ( !!app ) {
if ( !config.isOffline ) {
app.execCommand('webapps:config', 'goback:' + config.customization.goback.url);
}
if ( obj.element == 'toolbar' ) {
if ( obj.action == 'off' && obj.style == 'native-color' ) {
$('.toolbar').removeClass('editor-native-color');
app.on_native_message = function (cmd, param) {
if (/^style:change/.test(cmd)) {
var obj = JSON.parse(param);
if ( obj.element == 'toolbar' ) {
if ( obj.action == 'off' && obj.style == 'native-color' ) {
$('.toolbar').removeClass('editor-native-color');
}
}
}
}
});
};
}
}
},
process: function (opts) {