[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,7 +57,12 @@ define([
$('.toolbar').addClass('editor-native-color'); $('.toolbar').addClass('editor-native-color');
}); });
!!app && (app.on_native_message = function (cmd, param) { if ( !!app ) {
if ( !config.isOffline ) {
app.execCommand('webapps:config', 'goback:' + config.customization.goback.url);
}
app.on_native_message = function (cmd, param) {
if (/^style:change/.test(cmd)) { if (/^style:change/.test(cmd)) {
var obj = JSON.parse(param); var obj = JSON.parse(param);
@ -67,7 +72,8 @@ define([
} }
} }
} }
}); };
}
} }
}, },
process: function (opts) { process: function (opts) {