2021-12-14 17:37:04 +00:00
|
|
|
|
|
|
|
if ( window.AscDesktopEditor ) {
|
|
|
|
window.desktop = window.AscDesktopEditor;
|
|
|
|
desktop.features = {};
|
|
|
|
window.native_message_cmd = [];
|
|
|
|
|
|
|
|
window.on_native_message = function (cmd, param) {
|
|
|
|
if ( /window:features/.test(cmd) ) {
|
|
|
|
var obj = JSON.parse(param);
|
|
|
|
if ( obj.singlewindow !== undefined ) {
|
|
|
|
desktop.features.singlewindow = obj.singlewindow;
|
|
|
|
}
|
|
|
|
} else
|
|
|
|
window.native_message_cmd[cmd] = param;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( !!window.RendererProcessVariable ) {
|
|
|
|
desktop.theme = window.RendererProcessVariable.theme;
|
|
|
|
}
|
|
|
|
|
2021-12-18 19:21:59 +00:00
|
|
|
window.desktop.execCommand('webapps:entry', (window.features && JSON.stringify(window.features)) || '');
|
2021-12-14 17:37:04 +00:00
|
|
|
}
|