[desktop] debug

This commit is contained in:
Maxim Kadushkin 2021-12-15 14:14:42 +03:00
parent fd2fb44cfd
commit 03f0a24bfd

View file

@ -1871,17 +1871,17 @@ define([
native.execCommand("uitheme:changed", JSON.stringify({name:name, type:theme.type}));
},
});
Common.Gateway.on('opendocument', function () {
api = DE.getController('ApplicationController').api;
$("#title-doc-name")[native.features.singlewindow ? 'hide' : 'show']();
var is_win_xp = window.RendererProcessVariable && window.RendererProcessVariable.os === 'winxp';
Common.UI.Themes.setAvailable(!is_win_xp);
});
}
Common.Gateway.on('opendocument', function () {
api = DE.getController('ApplicationController').api;
$("#title-doc-name")[native.features.singlewindow ? 'hide' : 'show']();
var is_win_xp = window.RendererProcessVariable && window.RendererProcessVariable.os === 'winxp';
Common.UI.Themes.setAvailable(!is_win_xp);
});
return {
isActive: function () {
return !!native;