Merge pull request #881 from ONLYOFFICE/feature/pr32-fix-bug-50414

[all] fix bug 50414
This commit is contained in:
maxkadushkin 2021-05-14 15:37:14 +03:00 committed by GitHub
commit 1945456b9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View file

@ -48,7 +48,7 @@ define([
uithemes: true
};
var native = window.native || window.AscDesktopEditor;
var native = window.desktop || window.AscDesktopEditor;
!!native && native.execCommand('webapps:features', JSON.stringify(features));
var Desktop = function () {

View file

@ -212,12 +212,12 @@
window.parentOrigin = params["parentOrigin"];
if ( window.AscDesktopEditor ) {
window.native = window.AscDesktopEditor;
window.desktop = window.AscDesktopEditor;
window.on_native_message = function (cmd, param) {
!window.native_message_cmd && (window.native_message_cmd = []);
window.native_message_cmd[cmd] = param;
}
window.native.execCommand('webapps:entry', '');
window.desktop.execCommand('webapps:entry', '');
}
</script>
@ -230,7 +230,7 @@
<div id="viewport"></div>
<script>
if ( window.native ) {
if ( window.desktop ) {
var logo = document.getElementsByClassName('loading-logo');
if ( !!logo && logo.length ) {
logo[0].setAttribute('style','display:none;');

View file

@ -259,12 +259,12 @@
}
if ( window.AscDesktopEditor ) {
window.native = window.AscDesktopEditor;
window.desktop = window.AscDesktopEditor;
window.on_native_message = function (cmd, param) {
!window.native_message_cmd && (window.native_message_cmd = []);
window.native_message_cmd[cmd] = param;
}
window.native.execCommand('webapps:entry', '');
window.desktop.execCommand('webapps:entry', '');
}
</script>
@ -288,7 +288,7 @@
<div id="viewport"></div>
<script>
if ( window.native ) {
if ( window.desktop ) {
var logo = document.getElementsByClassName('loading-logo');
if ( !!logo && logo.length ) {
logo[0].setAttribute('style','display:none;');

View file

@ -254,12 +254,12 @@
window.parentOrigin = params["parentOrigin"];
if ( window.AscDesktopEditor ) {
window.native = window.AscDesktopEditor;
window.desktop = window.AscDesktopEditor;
window.on_native_message = function (cmd, param) {
!window.native_message_cmd && (window.native_message_cmd = []);
window.native_message_cmd[cmd] = param;
}
window.native.execCommand('webapps:entry', '');
window.desktop.execCommand('webapps:entry', '');
}
</script>
@ -288,7 +288,7 @@
<div id="viewport"></div>
<script>
if ( window.native ) {
if ( window.desktop ) {
var logo = document.getElementsByClassName('loading-logo');
if ( !!logo && logo.length ) {
logo[0].setAttribute('style','display:none;');